mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
Don't inlude empty extents in full extents. Fix #7709
This commit is contained in:
parent
d6c16dd2ca
commit
b9fc239e1b
@ -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() );
|
||||
|
Loading…
x
Reference in New Issue
Block a user