Skip to content
Permalink
Browse files

Add missing attributes at QgsAttributeEditorContext creation. Fix som…

…e asserts and crash (in QgsMapToolAdvancedDigitizing::QgsMapToolAdvancedDigitizing).
  • Loading branch information
obrix
obrix committed Mar 2, 2020
1 parent a7566de commit f407bd558dde9f20ea2706d79f97b34cbe1202d9
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/app/qgisapp.cpp
@@ -9268,6 +9268,9 @@ void QgisApp::modifyAttributesOfSelectedFeatures()
QgsFeature f;
QgsAttributeEditorContext context;
context.setAllowCustomUi( false );
context.setVectorLayerTools( mVectorLayerTools );
context.setCadDockWidget(mAdvancedDigitizingDockWidget);
context.setMapCanvas(mMapCanvas);

QgsAttributeDialog *dialog = new QgsAttributeDialog( vl, &f, false, this, true, context );
dialog->setMode( QgsAttributeEditorContext::MultiEditMode );
@@ -9567,6 +9570,7 @@ void QgisApp::selectByForm()
QgsAttributeEditorContext context;
context.setDistanceArea( myDa );
context.setVectorLayerTools( mVectorLayerTools );
context.setCadDockWidget(mAdvancedDigitizingDockWidget);
context.setMapCanvas( mMapCanvas );

QgsSelectByFormDialog *dlg = new QgsSelectByFormDialog( vlayer, context, this );

0 comments on commit f407bd5

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