Skip to content
Permalink
Browse files

Merge pull request #818 from 3nids/undodigitize

fix crash at undo in digitize
  • Loading branch information
NathanW2 committed Aug 16, 2013
2 parents 116bbff + 2a4f4d6 commit 5fb53d8668243daa89c75e669ba45d33d62e998f
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 5fb53d8

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