vcl/source/bitmap/BitmapFastScaleFilter.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 593037e37d0db08138c5ef32041007b65052a55f Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Mon Mar 6 17:06:41 2023 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Mon Mar 6 21:17:31 2023 +0000 ofz#56734 Abrt Change-Id: I0426c0d3a56789b2f2d24fc87ed9e88653700ca5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148358 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/vcl/source/bitmap/BitmapFastScaleFilter.cxx b/vcl/source/bitmap/BitmapFastScaleFilter.cxx index 5a9250400d99..b8a8617d606f 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);