Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add feedback->canceled check
  • Loading branch information
root676 authored and nyalldawson committed Jul 2, 2020
1 parent bf24bd1 commit c409228
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/analysis/processing/qgsalgorithmcellstatistics.cpp
Expand Up @@ -241,6 +241,8 @@ QVariantMap QgsCellStatisticsAlgorithm::processAlgorithm( const QVariantMap &par
break; //in case some slow data sources are loaded
for ( int band : i.bands )
{
if ( feedback->isCanceled() )
break; //in case some slow data sources are loaded
std::unique_ptr< QgsRasterBlock > b( i.interface->block( band, blockExtent, iterCols, iterRows ) );
inputBlocks.emplace_back( std::move( b ) );
}
Expand Down

0 comments on commit c409228

Please sign in to comment.