Skip to content

Commit 5fb53d8

Browse files
committedAug 16, 2013
Merge pull request #818 from 3nids/undodigitize
fix crash at undo in digitize
2 parents 116bbff + 2a4f4d6 commit 5fb53d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/app/qgsmaptoolcapture.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,11 +245,11 @@ void QgsMapToolCapture::undo()
245245

246246
mRubberBand->removePoint( -1 );
247247

248-
if ( rubberBandSize > 0 )
248+
if ( rubberBandSize > 1 )
249249
{
250250
if ( tempRubberBandSize > 1 )
251251
{
252-
const QgsPoint *point = mRubberBand->getPoint( 0, rubberBandSize - 1 );
252+
const QgsPoint *point = mRubberBand->getPoint( 0, rubberBandSize - 2 );
253253
mTempRubberBand->movePoint( tempRubberBandSize - 2, *point );
254254
}
255255
}

0 commit comments

Comments
 (0)
Please sign in to comment.