Skip to content

Commit

Permalink
Allow delete part tool to remove geometry from single type point
Browse files Browse the repository at this point in the history
and line layers (fix #13258)
  • Loading branch information
nyalldawson committed Oct 13, 2015
1 parent 45d6c04 commit 0f9a08e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/qgsmaptooldeletepart.cpp
Expand Up @@ -134,7 +134,11 @@ QgsGeometry* QgsMapToolDeletePart::partUnderPoint( QPoint point, QgsFeatureId& f
vlayer->getFeatures( QgsFeatureRequest().setFilterFid( match.featureId() ) ).nextFeature( f );
const QgsGeometry* g = f.constGeometry();
if ( !g->isMultipart() )
return geomPart;
{
fid = match.featureId();
delete geomPart;
return QgsGeometry::fromPoint( match.point() );
}
if ( g->wkbType() == QGis::WKBMultiPoint || g->wkbType() == QGis::WKBMultiPoint25D )
{
fid = match.featureId();
Expand Down

0 comments on commit 0f9a08e

Please sign in to comment.