Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Test for 0 geometry
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6320 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Dec 27, 2006
1 parent ff58480 commit ecf66b5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/gui/qgsvectorlayer.cpp
Expand Up @@ -1392,8 +1392,11 @@ QgsRect QgsVectorLayer::bBoxOfSelected()
{
if (mSelectedFeatureIds.find(fet->featureId()) != mSelectedFeatureIds.end())
{
r=fet->geometry()->boundingBox();
retval.combineExtentWith(&r);
if(fet->geometry())
{
r=fet->boundingBox();
retval.combineExtentWith(&r);
}
}
delete fet;
}
Expand Down

0 comments on commit ecf66b5

Please sign in to comment.