Skip to content

Commit

Permalink
Don't inlude empty extents in full extents. Fix #7709
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Jul 13, 2013
1 parent d6c16dd commit b9fc239
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/qgsmaprenderer.cpp
Expand Up @@ -958,6 +958,12 @@ void QgsMapRenderer::updateFullExtent()
QgsDebugMsg( "Updating extent using " + lyr->name() );
QgsDebugMsg( "Input extent: " + lyr->extent().toString() );

if ( lyr->extent().isEmpty() )
{
it++;
continue;
}

// Layer extents are stored in the coordinate system (CS) of the
// layer. The extent must be projected to the canvas CS
QgsRectangle extent = layerExtentToOutputExtent( lyr, lyr->extent() );
Expand Down

0 comments on commit b9fc239

Please sign in to comment.