Skip to content
Permalink
Browse files

repaint vector layer on toggleEditing if the there are vertex markers

  • Loading branch information
jef-n committed Jan 18, 2012
1 parent 2161c86 commit 7b0db112459031fb8f67330543520db9318b2864
Showing with 10 additions and 1 deletion.
  1. +10 −1 src/app/qgisapp.cpp
@@ -4389,7 +4389,16 @@ bool QgisApp::toggleEditing( QgsMapLayer *layer, bool allowCancel )
activateDeactivateLayerRelatedActions( layer );
}

vlayer->triggerRepaint();
QSettings settings;
QString markerType = settings.value( "/qgis/digitizing/marker_style", "Cross" ).toString();
bool markSelectedOnly = settings.value( "/qgis/digitizing/marker_only_for_selected", false ).toBool();

// repaint only if the there will be/were markers
if (( !markSelectedOnly || vlayer->selectedFeatureCount() > 0 ) &&
( markerType == "Cross" || markerType == "SemiTransparentCircle" ) )
{
vlayer->triggerRepaint();
}

return res;
}

0 comments on commit 7b0db11

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