Skip to content

Commit 0351fcf

Browse files
author
mhugent
committed
Fix for ticket #3471
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15131 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 544cc42 commit 0351fcf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/core/qgsmaprenderer.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,10 @@ void QgsMapRenderer::render( QPainter* painter )
381381
split = splitLayersExtent( ml, r1, r2 );
382382
ct = new QgsCoordinateTransform( ml->srs(), *mDestCRS );
383383
mRenderContext.setExtent( r1 );
384+
if( !r1.isFinite() || !r2.isFinite() ) //there was a problem transforming the extent. Skip the layer
385+
{
386+
continue;
387+
}
384388
}
385389
else
386390
{

0 commit comments

Comments
 (0)