Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
remove redundant check
  • Loading branch information
alexbruy committed Jul 8, 2020
1 parent 0473df6 commit fbed342
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/analysis/processing/qgsalgorithmrescaleraster.cpp
Expand Up @@ -144,12 +144,11 @@ QVariantMap QgsRescaleRasterAlgorithm::processAlgorithm( const QVariantMap &para
std::unique_ptr< QgsRasterBlock > block;
while ( iter.readNextRasterPart( mBand, iterCols, iterRows, block, iterLeft, iterTop ) )
{
if ( feedback )
feedback->setProgress( 100 * ( ( iterTop / blockHeight * numBlocksX ) + iterLeft / blockWidth ) / numBlocks );
feedback->setProgress( 100 * ( ( iterTop / blockHeight * numBlocksX ) + iterLeft / blockWidth ) / numBlocks );

for ( int row = 0; row < iterRows; row++ )
{
if ( feedback && feedback->isCanceled() )
if ( feedback->isCanceled() )
break;

for ( int col = 0; col < iterCols; col++ )
Expand Down

0 comments on commit fbed342

Please sign in to comment.