Skip to content
Permalink
Browse files

Test for 0 geometry

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6320 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Dec 27, 2006
1 parent ff58480 commit ecf66b55591ba78aae379e02eb9c920981a61d64
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/gui/qgsvectorlayer.cpp
@@ -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;
}

0 comments on commit ecf66b5

Please sign in to comment.
You can’t perform that action at this time.