Skip to content

Commit

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

0 comments on commit 5541ad0

Please sign in to comment.