Skip to content

Commit

Permalink
qgsimageoperation.cpp: fix (likely false-positive) warning about pote…
Browse files Browse the repository at this point in the history
…ntial integer overflow in the loop increment
  • Loading branch information
rouault authored and nyalldawson committed Jun 15, 2020
1 parent e2eabe4 commit f11eb45
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/effects/qgsimageoperation.cpp
Expand Up @@ -829,6 +829,7 @@ QRect QgsImageOperation::nonTransparentImageRect( const QImage &image, QSize min
if ( qAlpha( imgScanline[x] ) )
{
xmin = x;
break;
}
}
}
Expand All @@ -842,6 +843,7 @@ QRect QgsImageOperation::nonTransparentImageRect( const QImage &image, QSize min
if ( qAlpha( imgScanline[x] ) )
{
xmax = x;
break;
}
}
}
Expand Down

0 comments on commit f11eb45

Please sign in to comment.