Skip to content
Permalink
Browse files

Fix cancelation support for reclassify algs

  • Loading branch information
nyalldawson committed Jun 13, 2018
1 parent d7a37fa commit 85d895d0e3c4aa11d04b90328a783ba3d8bc94d6
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/analysis/processing/qgsreclassifyutils.cpp
@@ -54,6 +54,8 @@ void QgsReclassifyUtils::reclassify( const QVector<QgsReclassifyUtils::RasterCla
{
if ( feedback )
feedback->setProgress( 100 * ( ( iterTop / maxHeight * nbBlocksWidth ) + iterLeft / maxWidth ) / nbBlocks );
if ( feedback && feedback->isCanceled() )
break;
std::unique_ptr< QgsRasterBlock > reclassifiedBlock = qgis::make_unique< QgsRasterBlock >( Qgis::Float32, iterCols, iterRows );

for ( int row = 0; row < iterRows; row++ )

0 comments on commit 85d895d

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