vcl/source/bitmap/BitmapFastScaleFilter.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 58eafa815edf054492eaed247d01407b9defc781
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Mon Mar 6 17:06:41 2023 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Tue Mar 7 10:53:42 2023 +0000

    ofz#56734 Abrt
    
    Change-Id: I0426c0d3a56789b2f2d24fc87ed9e88653700ca5
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148319
    Reviewed-by: Michael Stahl <michael.st...@allotropia.de>
    Tested-by: Jenkins

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);
 

Reply via email to