Merge pull request #818 from 3nids/undodigitize

fix crash at undo in digitize
This commit is contained in:
Nathan Woodrow 2013-08-16 03:09:48 -07:00
commit 5fb53d8668

View File

@ -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 );
}
}