From f11eb4583974ca25adf295647073cd5ce9f7a971 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Sat, 13 Jun 2020 17:30:53 +0200 Subject: [PATCH] qgsimageoperation.cpp: fix (likely false-positive) warning about potential integer overflow in the loop increment --- src/core/effects/qgsimageoperation.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/effects/qgsimageoperation.cpp b/src/core/effects/qgsimageoperation.cpp index 45ab0a03fe4..53dc542fe56 100644 --- a/src/core/effects/qgsimageoperation.cpp +++ b/src/core/effects/qgsimageoperation.cpp @@ -829,6 +829,7 @@ QRect QgsImageOperation::nonTransparentImageRect( const QImage &image, QSize min if ( qAlpha( imgScanline[x] ) ) { xmin = x; + break; } } } @@ -842,6 +843,7 @@ QRect QgsImageOperation::nonTransparentImageRect( const QImage &image, QSize min if ( qAlpha( imgScanline[x] ) ) { xmax = x; + break; } } }