diff --git a/src/core/raster/qgsrasteriterator.cpp b/src/core/raster/qgsrasteriterator.cpp index f32f9eeb190d..445fc27ea879 100644 --- a/src/core/raster/qgsrasteriterator.cpp +++ b/src/core/raster/qgsrasteriterator.cpp @@ -232,7 +232,7 @@ double QgsRasterIterator::progress( int bandNumber ) const return 0; } - return ( ( partIt->currentRow / static_cast< double >( mMaximumTileHeight ) ) * mNumberBlocksWidth + partIt->currentCol / static_cast< double >( mMaximumTileWidth ) ) / ( static_cast< double >( mNumberBlocksWidth ) * static_cast< double >( mNumberBlocksHeight ) ); + return ( ( static_cast< double >( partIt->currentRow ) / static_cast< double >( mMaximumTileHeight ) ) * mNumberBlocksWidth + static_cast< double >( partIt->currentCol ) / static_cast< double >( mMaximumTileWidth ) ) / ( static_cast< double >( mNumberBlocksWidth ) * static_cast< double >( mNumberBlocksHeight ) ); } void QgsRasterIterator::removePartInfo( int bandNumber )