Skip to content

Commit

Permalink
fix crash at undo in digitize
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Aug 16, 2013
1 parent 4e69997 commit 2a4f4d6
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 2a4f4d6

Please sign in to comment.