Skip to content

Commit

Permalink
don't crash on late update timeouts
Browse files Browse the repository at this point in the history
(cherry picked from commit 5541ad0)
  • Loading branch information
jef-n committed Mar 16, 2017
1 parent e950b7b commit 9887734
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/gui/qgsmapcanvas.cpp
Expand Up @@ -640,8 +640,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()
Expand Down

0 comments on commit 9887734

Please sign in to comment.