Skip to content
Permalink
Browse files
Delete feature if add polygon not successfull
  • Loading branch information
mhugent committed Feb 18, 2012
1 parent 46f208f commit a9a9b9394abb53db25cf3884a9c983862fa6dbd1
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/app/qgsmaptooladdfeature.cpp
@@ -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 );

0 comments on commit a9a9b93

Please sign in to comment.