Skip to content
Permalink
Browse files

Don't inlude empty extents in full extents. Fix #7709

  • Loading branch information
NathanW2 committed Jul 13, 2013
1 parent d6c16dd commit b9fc239e1b749442f80d39f5b3d8d3488d292e2e
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/core/qgsmaprenderer.cpp
@@ -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() );

0 comments on commit b9fc239

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