Skip to content

Commit

Permalink
Skip missing geometries when calculating extent (fixes #8192, #8194)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Aug 4, 2013
1 parent f6d2d8a commit 7608faf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsvectorlayer.cpp
Expand Up @@ -1161,7 +1161,7 @@ QgsRectangle QgsVectorLayer::extent()
QgsFeature fet;
while ( fit.nextFeature( fet ) )
{
if ( fet.geometry() )
if ( fet.geometry() && fet.geometry()->type() != QGis::UnknownGeometry )
{
QgsRectangle bb = fet.geometry()->boundingBox();
rect.combineExtentWith( &bb );
Expand Down

0 comments on commit 7608faf

Please sign in to comment.