Skip to content
Permalink
Browse files
don't crash on late update timeouts
(cherry picked from commit 5541ad0)
  • Loading branch information
jef-n committed Mar 16, 2017
1 parent e950b7b commit 9887734a1fd413a3c3a05c6dfaafa58baeb1e0ef
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/gui/qgsmapcanvas.cpp
@@ -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()

0 comments on commit 9887734

Please sign in to comment.