mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-07 00:03:52 -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()
|
void QgsMapToolShapeAbstract::undo()
|
||||||
{
|
{
|
||||||
if ( mPoints.count() > 1 )
|
if ( mPoints.count() > 0 )
|
||||||
mPoints.removeLast();
|
mPoints.removeLast();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -984,6 +984,9 @@ void QgsMapToolCapture::deleteTempRubberBand()
|
|||||||
void QgsMapToolCapture::clean()
|
void QgsMapToolCapture::clean()
|
||||||
{
|
{
|
||||||
stopCapturing();
|
stopCapturing();
|
||||||
|
if ( mCurrentCaptureTechnique == Shape && mCurrentShapeMapTool )
|
||||||
|
mCurrentShapeMapTool->clean();
|
||||||
|
|
||||||
clearCurve();
|
clearCurve();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user