Skip to content

Commit

Permalink
fix #42626
Browse files Browse the repository at this point in the history
  • Loading branch information
vcloarec committed Apr 5, 2021
1 parent b6de378 commit 91eb65d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsmaptoolcapture.cpp
Expand Up @@ -633,7 +633,7 @@ int QgsMapToolCapture::addVertex( const QgsPointXY &point, const QgsPointLocator
mCaptureLastPoint = mapPoint;
mTempRubberBand->reset( mCaptureMode == CapturePolygon ? QgsWkbTypes::PolygonGeometry : QgsWkbTypes::LineGeometry, mDigitizingType, firstCapturedMapPoint() );
}
else if ( mCaptureCurve.numPoints() == 0 )
else if ( mTempRubberBand->pointsCount() == 0 )
{
mCaptureLastPoint = mapPoint;
mCaptureCurve.addVertex( layerPoint );
Expand Down

0 comments on commit 91eb65d

Please sign in to comment.