mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -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 )
|
if ( !g )
|
||||||
{
|
{
|
||||||
stopCapturing();
|
stopCapturing();
|
||||||
|
delete f;
|
||||||
return; // invalid geometry; one possibility is from duplicate points
|
return; // invalid geometry; one possibility is from duplicate points
|
||||||
}
|
}
|
||||||
f->setGeometry( g );
|
f->setGeometry( g );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user