Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 e807e32
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 e807e32

Please sign in to comment.