vcl/source/bitmap/BitmapFastScaleFilter.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 63643ca0d3195069a65dbb37bc85ba2d49d337e5 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Mon Mar 6 17:06:41 2023 +0000 Commit: Michael Stahl <michael.st...@allotropia.de> CommitDate: Wed Mar 8 08:51:22 2023 +0000 ofz#56734 Abrt Change-Id: I0426c0d3a56789b2f2d24fc87ed9e88653700ca5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148320 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.st...@allotropia.de> 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);