Skip to content
Permalink
Browse files

add feedback->canceled check

  • Loading branch information
root676 authored and nyalldawson committed Jul 2, 2020
1 parent bf24bd1 commit c40922862842fb0c3d364772016be7bff658ff59
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/analysis/processing/qgsalgorithmcellstatistics.cpp
@@ -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 ) );
}

0 comments on commit c409228

Please sign in to comment.
You can’t perform that action at this time.