Allow delete part tool to remove geometry from single type point

and line layers (fix #13258)
This commit is contained in:
Nyall Dawson 2015-10-13 16:46:22 +11:00
parent 45d6c0463c
commit 0f9a08e6f2

View File

@ -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();