mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-05 00:04:40 -05:00
correctly undo and clean
This commit is contained in:
parent
9510498223
commit
bef73cd091
@ -44,6 +44,6 @@ void QgsMapToolShapeAbstract::clean()
|
||||
|
||||
void QgsMapToolShapeAbstract::undo()
|
||||
{
|
||||
if ( mPoints.count() > 1 )
|
||||
if ( mPoints.count() > 0 )
|
||||
mPoints.removeLast();
|
||||
}
|
||||
|
||||
@ -984,6 +984,9 @@ void QgsMapToolCapture::deleteTempRubberBand()
|
||||
void QgsMapToolCapture::clean()
|
||||
{
|
||||
stopCapturing();
|
||||
if ( mCurrentCaptureTechnique == Shape && mCurrentShapeMapTool )
|
||||
mCurrentShapeMapTool->clean();
|
||||
|
||||
clearCurve();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user