Skip to content
Permalink
Browse files

remove redundant check

  • Loading branch information
alexbruy committed Jul 8, 2020
1 parent 0473df6 commit fbed3429f2cce75c36fc454019ef5033527f0a6f
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/analysis/processing/qgsalgorithmrescaleraster.cpp
@@ -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++ )

0 comments on commit fbed342

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