Skip to content

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
 

‎src/gui/qgsvectorlayer.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,8 +1392,11 @@ QgsRect QgsVectorLayer::bBoxOfSelected()
13921392
{
13931393
if (mSelectedFeatureIds.find(fet->featureId()) != mSelectedFeatureIds.end())
13941394
{
1395-
r=fet->geometry()->boundingBox();
1396-
retval.combineExtentWith(&r);
1395+
if(fet->geometry())
1396+
{
1397+
r=fet->boundingBox();
1398+
retval.combineExtentWith(&r);
1399+
}
13971400
}
13981401
delete fet;
13991402
}

0 commit comments

Comments
 (0)
Please sign in to comment.