Add early exit path to hue/saturation filter

This commit is contained in:
Nyall Dawson 2025-06-18 14:52:03 +10:00 committed by github-actions[bot]
parent 8afd863166
commit cfb8d100b7

View File

@ -154,6 +154,9 @@ QgsRasterBlock *QgsHueSaturationFilter::block( int bandNo, QgsRectangle const &
for ( int row = 0; row < height; ++row )
{
if ( feedback->isCanceled() )
return nullptr;
for ( int col = 0; col < width; ++col )
{
const qgssize i = static_cast< qgssize >( row ) * width + static_cast< qgssize >( col );