Skip to content
Permalink
Browse files
Skip missing geometries when calculating extent (fixes #8192, #8194)
  • Loading branch information
nyalldawson committed Aug 4, 2013
1 parent f6d2d8a commit 7608faf6cbcd20e09c34f5953df9158380fd6c81
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsvectorlayer.cpp
@@ -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 );

0 comments on commit 7608faf

Please sign in to comment.