We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent d6c16dd commit b9fc239Copy full SHA for b9fc239
src/core/qgsmaprenderer.cpp
@@ -958,6 +958,12 @@ void QgsMapRenderer::updateFullExtent()
958
QgsDebugMsg( "Updating extent using " + lyr->name() );
959
QgsDebugMsg( "Input extent: " + lyr->extent().toString() );
960
961
+ if ( lyr->extent().isEmpty() )
962
+ {
963
+ it++;
964
+ continue;
965
+ }
966
+
967
// Layer extents are stored in the coordinate system (CS) of the
968
// layer. The extent must be projected to the canvas CS
969
QgsRectangle extent = layerExtentToOutputExtent( lyr, lyr->extent() );
0 commit comments