diff --git a/src/core/qgsmaprenderer.cpp b/src/core/qgsmaprenderer.cpp index 31d44a4c893..ddd944d5d08 100644 --- a/src/core/qgsmaprenderer.cpp +++ b/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() );