mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
fix addpart tool warning
The isGeometryEmpty variable was true when geometry was present and viceversa. Thus the warning for multiple parts for single geometry was giving false positives and negatives.
This commit is contained in:
parent
dcd33186bb
commit
5168d7d98b
@ -71,7 +71,7 @@ void QgsMapToolAddPart::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
|
||||
QgsFeatureIterator selectedFeatures = vlayer->getSelectedFeatures();
|
||||
QgsFeature firstSelectedFeature;
|
||||
if ( selectedFeatures.nextFeature( firstSelectedFeature ) )
|
||||
if ( !firstSelectedFeature.geometry().isNull() )
|
||||
if ( firstSelectedFeature.geometry().isNull() )
|
||||
isGeometryEmpty = true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user