Skip to content

Commit

Permalink
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/gui/qgsmaptoolcapture.cpp
Original file line number Diff line number Diff line change
@@ -48,6 +48,8 @@ QgsMapToolCapture::QgsMapToolCapture( QgsMapCanvas *canvas, QgsAdvancedDigitizin
, mCaptureMode( mode )
, mCaptureModeFromLayer( mode == CaptureNone )
{
mTempRubberBand.setParentOwner( canvas );

mSnapIndicator.reset( new QgsSnapIndicator( canvas ) );

setCursor( QgsApplication::getThemeCursor( QgsApplication::Cursor::CapturePoint ) );
2 changes: 1 addition & 1 deletion src/gui/qgsmaptoolcapture.h
Original file line number Diff line number Diff line change
@@ -391,7 +391,7 @@ class GUI_EXPORT QgsMapToolCapture : public QgsMapToolAdvancedDigitizing
QObjectUniquePtr<QgsRubberBand> mRubberBand;

//! Temporary rubber band for polylines and polygons. this connects the last added point to the mouse cursor position
std::unique_ptr<QgsMapToolCaptureRubberBand> mTempRubberBand;
QObjectParentUniquePtr<QgsMapToolCaptureRubberBand> mTempRubberBand;

//! List to store the points of digitized lines and polygons (in layer coordinates)
QgsCompoundCurve mCaptureCurve;

0 comments on commit da7f05d

Please sign in to comment.