Skip to content

Commit

Permalink
Make sure to update snapping utils when layers change
Browse files Browse the repository at this point in the history
Otherwise when using all layers the change would not become visible
(unless other change happens, e.g. change of map extent)
  • Loading branch information
wonder-sk committed Jan 23, 2015
1 parent 23c776e commit 408d746
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/qgsmapcanvassnappingutils.cpp
Expand Up @@ -9,6 +9,7 @@ QgsMapCanvasSnappingUtils::QgsMapCanvasSnappingUtils( QgsMapCanvas* canvas, QObj
{
connect( canvas, SIGNAL( extentsChanged() ), this, SLOT( canvasMapSettingsChanged() ) );
connect( canvas, SIGNAL( destinationCrsChanged() ), this, SLOT( canvasMapSettingsChanged() ) );
connect( canvas, SIGNAL( layersChanged() ), this, SLOT( canvasMapSettingsChanged() ) );
connect( canvas, SIGNAL( currentLayerChanged( QgsMapLayer* ) ), this, SLOT( canvasCurrentLayerChanged() ) );
canvasMapSettingsChanged();
canvasCurrentLayerChanged();
Expand Down

0 comments on commit 408d746

Please sign in to comment.