Skip to content

Commit

Permalink
Test for 0 geometry
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@6320 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Dec 27, 2006
1 parent c6f094b commit 566dcdc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/gui/qgsvectorlayer.cpp
Original file line number Diff line number Diff line change
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 566dcdc

Please sign in to comment.