We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent ff58480 commit ecf66b5Copy full SHA for ecf66b5
src/gui/qgsvectorlayer.cpp
@@ -1392,8 +1392,11 @@ QgsRect QgsVectorLayer::bBoxOfSelected()
1392
{
1393
if (mSelectedFeatureIds.find(fet->featureId()) != mSelectedFeatureIds.end())
1394
1395
- r=fet->geometry()->boundingBox();
1396
- retval.combineExtentWith(&r);
+ if(fet->geometry())
+ {
1397
+ r=fet->boundingBox();
1398
+ retval.combineExtentWith(&r);
1399
+ }
1400
}
1401
delete fet;
1402
0 commit comments