Skip to content

Commit

Permalink
Fix crash when pasting polygon features and unique constraints are vi…
Browse files Browse the repository at this point in the history
…olated
  • Loading branch information
github-actions[bot] authored and nyalldawson committed Mar 25, 2020
1 parent 50c345e commit 6927d04
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/qgsfixattributedialog.cpp
Expand Up @@ -16,6 +16,7 @@

#include "qgsattributeform.h"
#include "qgsapplication.h"
#include "qgisapp.h"

#include <QtWidgets/QPushButton>

Expand All @@ -33,6 +34,7 @@ void QgsFixAttributeDialog::init( QgsVectorLayer *layer )
setLayout( new QGridLayout() );
layout()->setMargin( 0 );
context.setFormMode( QgsAttributeEditorContext::StandaloneDialog );
context.setVectorLayerTools( QgisApp::instance()->vectorLayerTools() );

mUnfixedFeatures = mFeatures;
mCurrentFeature = mFeatures.begin();
Expand Down

0 comments on commit 6927d04

Please sign in to comment.