Skip to content
Permalink
Browse files

Cleanup rendering jobs in the main thread (fixes a crash in sequentia…

…l job)
  • Loading branch information
wonder-sk committed Jan 6, 2014
1 parent 1074312 commit cae352b39ccc3b3b62675e9ddbe028a3bf789714
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/core/qgsmaprendererjob.cpp
@@ -301,6 +301,10 @@ void QgsMapRendererCustomPainterJob::futureFinished()
mActive = false;
mRenderingTime = mRenderingStart.elapsed();
qDebug("QPAINTER futureFinished");

// final cleanup
cleanupJobs( mLayerJobs );

emit finished();
}

@@ -341,9 +345,6 @@ void QgsMapRendererCustomPainterJob::doRender()

}

// final cleanup
cleanupJobs( mLayerJobs );

QgsDebugMsg( "Done rendering map layers" );

if ( mSettings.testFlag( QgsMapSettings::DrawLabeling ) && !mLabelingRenderContext.renderingStopped() )

0 comments on commit cae352b

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