Navigation Menu

Skip to content

Commit

Permalink
Fix crash when cancelling render
Browse files Browse the repository at this point in the history
Partial backport of 23909a
  • Loading branch information
nyalldawson committed Sep 22, 2016
1 parent 508d127 commit dfeb663
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsmaprendererparalleljob.cpp
Expand Up @@ -106,7 +106,7 @@ void QgsMapRendererParallelJob::cancel()
for ( LayerRenderJobs::iterator it = mLayerJobs.begin(); it != mLayerJobs.end(); ++it )
{
it->context.setRenderingStopped( true );
if ( it->renderer->feedback() )
if ( it->renderer && it->renderer->feedback() )
it->renderer->feedback()->cancel();
}

Expand Down

0 comments on commit dfeb663

Please sign in to comment.