Skip to content

Commit b6fbdec

Browse files
committed
Initialize capture mode from layer
When the captureMode is set to CaptureNone, it should be initialized from the layer on create and not only on the first layer change.
1 parent 0b96fd9 commit b6fbdec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/gui/qgsmaptoolcapture.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ QgsMapToolCapture::QgsMapToolCapture( QgsMapCanvas *canvas, QgsAdvancedDigitizin
5151

5252
connect( canvas, &QgsMapCanvas::currentLayerChanged,
5353
this, &QgsMapToolCapture::currentLayerChanged );
54+
55+
currentLayerChanged( canvas->currentLayer() );
5456
}
5557

5658
QgsMapToolCapture::~QgsMapToolCapture()

0 commit comments

Comments
 (0)