Skip to content
Permalink
Browse files

Merge pull request #810 from 3nids/fixwarning

fix warning
  • Loading branch information
NathanW2 committed Aug 14, 2013
2 parents fef6e2b + bc07232 commit 63cf5d39691d063decd59476525c30492458daf7
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/app/qgsmaptoolcapture.cpp
@@ -245,12 +245,12 @@ void QgsMapToolCapture::undo()

mRubberBand->removePoint( -1 );

if ( mRubberBand->numberOfVertices() > 0 )
if ( rubberBandSize > 0 )
{
if ( mTempRubberBand->numberOfVertices() > 1 )
if ( tempRubberBandSize > 1 )
{
const QgsPoint *point = mRubberBand->getPoint( 0, mRubberBand->numberOfVertices() - 1 );
mTempRubberBand->movePoint( mTempRubberBand->numberOfVertices() - 2, *point );
const QgsPoint *point = mRubberBand->getPoint( 0, rubberBandSize - 1 );
mTempRubberBand->movePoint( tempRubberBandSize - 2, *point );
}
}
else

0 comments on commit 63cf5d3

Please sign in to comment.
You can’t perform that action at this time.