Skip to content

Commit

Permalink
fix layer extent calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Nov 7, 2012
1 parent 4910276 commit 484f72c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/qgsvectorlayer.cpp
Expand Up @@ -1562,6 +1562,7 @@ QgsRectangle QgsVectorLayer::extent()
return QgsMapLayer::extent();

QgsRectangle rect;
rect.setMinimal();

if ( !hasGeometryType() )
return rect;
Expand Down

0 comments on commit 484f72c

Please sign in to comment.