Navigation Menu

Skip to content

Commit

Permalink
Delete feature if add polygon not successfull
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Feb 18, 2012
1 parent 46f208f commit a9a9b93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/qgsmaptooladdfeature.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit a9a9b93

Please sign in to comment.