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

This commit is contained in:
Nathan Woodrow 2013-07-13 22:53:59 +10:00
parent d6c16dd2ca
commit b9fc239e1b

View File

@ -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() );