Skip to content
Permalink
Browse files

Wait for the current rendering to finish before touching the cache

  • Loading branch information
Hugo Mercier authored and m-kuhn committed Jun 2, 2015
1 parent f4eca22 commit 23723512e044a4b59a16edae0dfebfad1b453993
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/gui/qgsmapcanvas.cpp
@@ -555,6 +555,12 @@ void QgsMapCanvas::setCachingEnabled( bool enabled )
if ( enabled == isCachingEnabled() )
return;

if ( mJob && mJob->isActive() )
{
// wait for the current rendering to finish, before touching the cache
mJob->waitForFinished();
}

if ( enabled )
{
mCache = new QgsMapRendererCache;

0 comments on commit 2372351

Please sign in to comment.
You can’t perform that action at this time.