Skip to content
Permalink
Browse files

Allow delete part tool to remove geometry from single type point

and line layers (fix #13258)
  • Loading branch information
nyalldawson committed Oct 13, 2015
1 parent 45d6c04 commit 0f9a08e6f220585fd4c4e6c09343e52685206d3b
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/app/qgsmaptooldeletepart.cpp
@@ -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();

0 comments on commit 0f9a08e

Please sign in to comment.
You can’t perform that action at this time.