We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent fef6e2b commit bc07232Copy full SHA for bc07232
src/app/qgsmaptoolcapture.cpp
@@ -245,12 +245,12 @@ void QgsMapToolCapture::undo()
245
246
mRubberBand->removePoint( -1 );
247
248
- if ( mRubberBand->numberOfVertices() > 0 )
+ if ( rubberBandSize > 0 )
249
{
250
- if ( mTempRubberBand->numberOfVertices() > 1 )
+ if ( tempRubberBandSize > 1 )
251
252
- const QgsPoint *point = mRubberBand->getPoint( 0, mRubberBand->numberOfVertices() - 1 );
253
- mTempRubberBand->movePoint( mTempRubberBand->numberOfVertices() - 2, *point );
+ const QgsPoint *point = mRubberBand->getPoint( 0, rubberBandSize - 1 );
+ mTempRubberBand->movePoint( tempRubberBandSize - 2, *point );
254
}
255
256
else
0 commit comments