Skip to content
Permalink
Browse files

fix warning

  • Loading branch information
3nids committed Aug 14, 2013
1 parent fef6e2b commit bc0723228ea1824f19e3f0000e01150f6d977500
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 bc07232

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