Skip to content
Permalink
Browse files

Fix crash when pasting polygon features and unique constraints are

violated

Fixes #35171
  • Loading branch information
nyalldawson committed Mar 23, 2020
1 parent c168e75 commit e807e32c827e85828712a85426acb6d04ed9819b
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 e807e32

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