mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
Delete feature if add polygon not successfull
This commit is contained in:
parent
46f208fc22
commit
a9a9b9394a
@ -244,6 +244,7 @@ void QgsMapToolAddFeature::canvasReleaseEvent( QMouseEvent * e )
|
||||
if ( !g )
|
||||
{
|
||||
stopCapturing();
|
||||
delete f;
|
||||
return; // invalid geometry; one possibility is from duplicate points
|
||||
}
|
||||
f->setGeometry( g );
|
||||
|
Loading…
x
Reference in New Issue
Block a user