Skip to content

Commit

Permalink
Merge pull request #810 from 3nids/fixwarning
Browse files Browse the repository at this point in the history
fix warning
  • Loading branch information
NathanW2 committed Aug 14, 2013
2 parents fef6e2b + bc07232 commit 63cf5d3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/qgsmaptoolcapture.cpp
Expand Up @@ -245,12 +245,12 @@ void QgsMapToolCapture::undo()


mRubberBand->removePoint( -1 ); 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 ); const QgsPoint *point = mRubberBand->getPoint( 0, rubberBandSize - 1 );
mTempRubberBand->movePoint( mTempRubberBand->numberOfVertices() - 2, *point ); mTempRubberBand->movePoint( tempRubberBandSize - 2, *point );
} }
} }
else else
Expand Down

0 comments on commit 63cf5d3

Please sign in to comment.