Skip to content

Commit

Permalink
fix mesh traces without feedback in the render context (#52266)
Browse files Browse the repository at this point in the history
Co-authored-by: vcloarec <vcloarec@gmail.com>
  • Loading branch information
qgis-bot and vcloarec committed Mar 16, 2023
1 parent 3e5052b commit 6350a8b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/mesh/qgsmeshtracerenderer.cpp
Expand Up @@ -398,7 +398,9 @@ void QgsMeshStreamField::addRandomTraces()
{
if ( mMaximumMagnitude > 0 )
while ( ( mPixelFillingCount < mMaxPixelFillingCount ) &&
mRenderContext.feedback() && !mRenderContext.feedback()->isCanceled() )
( !mRenderContext.feedback() ||
!mRenderContext.feedback()->isCanceled() ||
!mRenderContext.renderingStopped() ) )
addRandomTrace();
}

Expand Down

0 comments on commit 6350a8b

Please sign in to comment.