mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
Allow delete part tool to remove geometry from single type point
and line layers (fix #13258)
This commit is contained in:
parent
45d6c0463c
commit
0f9a08e6f2
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user