mirror of
https://github.com/qgis/QGIS.git
synced 2025-11-22 00:14:55 -05:00
Merge pull request #818 from 3nids/undodigitize
fix crash at undo in digitize
This commit is contained in:
commit
5fb53d8668
@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user