Skip to content

Commit b9fc239

Browse files
committedJul 13, 2013
Don't inlude empty extents in full extents. Fix #7709
1 parent d6c16dd commit b9fc239

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎src/core/qgsmaprenderer.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -958,6 +958,12 @@ void QgsMapRenderer::updateFullExtent()
958958
QgsDebugMsg( "Updating extent using " + lyr->name() );
959959
QgsDebugMsg( "Input extent: " + lyr->extent().toString() );
960960

961+
if ( lyr->extent().isEmpty() )
962+
{
963+
it++;
964+
continue;
965+
}
966+
961967
// Layer extents are stored in the coordinate system (CS) of the
962968
// layer. The extent must be projected to the canvas CS
963969
QgsRectangle extent = layerExtentToOutputExtent( lyr, lyr->extent() );

0 commit comments

Comments
 (0)
Please sign in to comment.