Skip to content
Permalink
Browse files

Ignore geometry-less features when calculating layer extent (Fix #8805)

  • Loading branch information
m-kuhn committed Oct 11, 2013
1 parent 4cb37b1 commit 1690fc4beb0c89059f94ee15de616e8b6f835684
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/core/qgsvectorlayer.cpp
@@ -1139,8 +1139,11 @@ QgsRectangle QgsVectorLayer::extent()

for ( QgsFeatureMap::iterator it = mEditBuffer->mAddedFeatures.begin(); it != mEditBuffer->mAddedFeatures.end(); it++ )
{
QgsRectangle r = it->geometry()->boundingBox();
rect.combineExtentWith( &r );
if ( it->geometry() )
{
QgsRectangle r = it->geometry()->boundingBox();
rect.combineExtentWith( &r );
}
}
}
else

0 comments on commit 1690fc4

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