Skip to content

Commit bc07232

Browse files
committedAug 14, 2013
fix warning
1 parent fef6e2b commit bc07232

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎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)
Please sign in to comment.