Skip to content

Commit

Permalink
Initialize capture mode from layer
Browse files Browse the repository at this point in the history
When the captureMode is set to CaptureNone, it should be initialized from the layer on create and not only on the first layer change.
  • Loading branch information
m-kuhn committed Aug 24, 2018
1 parent 0b96fd9 commit b6fbdec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/qgsmaptoolcapture.cpp
Expand Up @@ -51,6 +51,8 @@ QgsMapToolCapture::QgsMapToolCapture( QgsMapCanvas *canvas, QgsAdvancedDigitizin

connect( canvas, &QgsMapCanvas::currentLayerChanged,
this, &QgsMapToolCapture::currentLayerChanged );

currentLayerChanged( canvas->currentLayer() );
}

QgsMapToolCapture::~QgsMapToolCapture()
Expand Down

0 comments on commit b6fbdec

Please sign in to comment.