Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Aug 14, 2013
1 parent fef6e2b commit bc07232
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 );

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
Expand Down

0 comments on commit bc07232

Please sign in to comment.