Skip to content

Commit

Permalink
Merge pull request #818 from 3nids/undodigitize
Browse files Browse the repository at this point in the history
fix crash at undo in digitize
  • Loading branch information
NathanW2 committed Aug 16, 2013
2 parents 116bbff + 2a4f4d6 commit 5fb53d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/qgsmaptoolcapture.cpp
Expand Up @@ -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 );
}
}
Expand Down

0 comments on commit 5fb53d8

Please sign in to comment.