fix layer extent calculation

This commit is contained in:
Juergen E. Fischer 2012-11-07 01:09:23 +01:00
parent 4910276930
commit 484f72cf0c

View File

@ -1562,6 +1562,7 @@ QgsRectangle QgsVectorLayer::extent()
return QgsMapLayer::extent();
QgsRectangle rect;
rect.setMinimal();
if ( !hasGeometryType() )
return rect;