Skip to content

Commit cae352b

Browse files
committedJan 6, 2014
Cleanup rendering jobs in the main thread (fixes a crash in sequential job)
1 parent 1074312 commit cae352b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
 

‎src/core/qgsmaprendererjob.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,10 @@ void QgsMapRendererCustomPainterJob::futureFinished()
301301
mActive = false;
302302
mRenderingTime = mRenderingStart.elapsed();
303303
qDebug("QPAINTER futureFinished");
304+
305+
// final cleanup
306+
cleanupJobs( mLayerJobs );
307+
304308
emit finished();
305309
}
306310

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

342346
}
343347

344-
// final cleanup
345-
cleanupJobs( mLayerJobs );
346-
347348
QgsDebugMsg( "Done rendering map layers" );
348349

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

0 commit comments

Comments
 (0)
Please sign in to comment.