Skip to content
Permalink
Browse files
don't crash on late update timeouts
  • Loading branch information
jef-n committed Mar 16, 2017
1 parent 90e9144 commit 5541ad0c06e298c9df804b2236ff660f129db3e6
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/gui/qgsmapcanvas.cpp
@@ -825,8 +825,11 @@ QgsRectangle QgsMapCanvas::imageRect( const QImage& img, const QgsMapSettings& m

void QgsMapCanvas::mapUpdateTimeout()
{
const QImage& img = mJob->renderedImage();
mMap->setContent( img, imageRect( img, mSettings ) );
if ( mJob )
{
const QImage& img = mJob->renderedImage();
mMap->setContent( img, imageRect( img, mSettings ) );
}
}

void QgsMapCanvas::stopRendering()

0 comments on commit 5541ad0

Please sign in to comment.