Skip to content
Permalink
Browse files

Fix crash when pasting polygon features and unique constraints are vi…

…olated
  • Loading branch information
github-actions authored and nyalldawson committed Mar 23, 2020
1 parent 50c345e commit 6927d045d86792726680a07fa38fa6f66ac2f285
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/app/qgsfixattributedialog.cpp
@@ -16,6 +16,7 @@

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

#include <QtWidgets/QPushButton>

@@ -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();

0 comments on commit 6927d04

Please sign in to comment.
You can’t perform that action at this time.