Skip to content
Permalink
Browse files

Wait for the current rendering to finish before touching the cache

  • Loading branch information
Hugo Mercier
Hugo Mercier committed Jun 2, 2015
1 parent 4157b33 commit 72369fd973bf5db58d6b771b77aa44312b087338
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/gui/qgsmapcanvas.cpp
@@ -554,6 +554,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 72369fd

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