Skip to content

Commit 63cf5d3

Browse files
committed
Merge pull request #810 from 3nids/fixwarning
fix warning
2 parents fef6e2b + bc07232 commit 63cf5d3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/app/qgsmaptoolcapture.cpp‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,12 +245,12 @@ void QgsMapToolCapture::undo()
245245

246246
mRubberBand->removePoint( -1 );
247247

248-
if ( mRubberBand->numberOfVertices() > 0 )
248+
if ( rubberBandSize > 0 )
249249
{
250-
if ( mTempRubberBand->numberOfVertices() > 1 )
250+
if ( tempRubberBandSize > 1 )
251251
{
252-
const QgsPoint *point = mRubberBand->getPoint( 0, mRubberBand->numberOfVertices() - 1 );
253-
mTempRubberBand->movePoint( mTempRubberBand->numberOfVertices() - 2, *point );
252+
const QgsPoint *point = mRubberBand->getPoint( 0, rubberBandSize - 1 );
253+
mTempRubberBand->movePoint( tempRubberBandSize - 2, *point );
254254
}
255255
}
256256
else

0 commit comments

Comments
 (0)