summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2023-03-06 17:06:41 +0000
committerMichael Stahl <michael.stahl@allotropia.de>2023-03-08 08:51:22 +0000
commit63643ca0d3195069a65dbb37bc85ba2d49d337e5 (patch)
treef76db2610df203dc446bc5dac5e4364d5fd7d940
parent0c1c25a97dff15ace8e9fe1fe91ab1de8adaa41b (diff)
ofz#56734 Abrt
Change-Id: I0426c0d3a56789b2f2d24fc87ed9e88653700ca5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148320 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
-rw-r--r--vcl/source/bitmap/BitmapFastScaleFilter.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/bitmap/BitmapFastScaleFilter.cxx b/vcl/source/bitmap/BitmapFastScaleFilter.cxx
index 362de6de706d..14fa2464f399 100644
--- a/vcl/source/bitmap/BitmapFastScaleFilter.cxx
+++ b/vcl/source/bitmap/BitmapFastScaleFilter.cxx
@@ -38,7 +38,7 @@ BitmapEx BitmapFastScaleFilter::execute(BitmapEx const& rBitmapEx) const
SAL_INFO("vcl.gdi", "New width: " << nNewWidth << "\nNew height: " << nNewHeight);
- if (nNewWidth && nNewHeight)
+ if (nNewWidth > 0 && nNewHeight > 0)
{
Bitmap::ScopedReadAccess pReadAcc(aBitmap);