Skip to content

Commit

Permalink
More responsive cancelation for Fill Nodata algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 20, 2020
1 parent 3692aec commit 4d789ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/analysis/processing/qgsalgorithmfillnodata.cpp
Expand Up @@ -133,6 +133,9 @@ QVariantMap QgsFillNoDataAlgorithm::processAlgorithm( const QVariantMap &paramet
if ( feedback )
feedback->setProgress( 100 * ( ( iterTop / maxHeight * nbBlocksWidth ) + iterLeft / maxWidth ) / nbBlocks );

if ( feedback && feedback->isCanceled() )
break;

if ( !filledRasterBlock->hasNoDataValue() )
{
destinationRasterProvider->writeBlock( filledRasterBlock.get(), mBand, iterLeft, iterTop );
Expand Down

0 comments on commit 4d789ae

Please sign in to comment.