Skip to content
Permalink
Browse files

fix crash at undo in digitize

  • Loading branch information
3nids committed Aug 16, 2013
1 parent 4e69997 commit 2a4f4d69900109ef8bf48e091577e19d5e2c3c91
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/qgsmaptoolcapture.cpp
@@ -245,11 +245,11 @@ void QgsMapToolCapture::undo()

mRubberBand->removePoint( -1 );

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

0 comments on commit 2a4f4d6

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