Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
repaint vector layer on toggleEditing if the there are vertex markers
  • Loading branch information
jef-n committed Jan 18, 2012
1 parent 2161c86 commit 7b0db11
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7b0db11

Please sign in to comment.