filter/source/graphicfilter/icgm/bitmap.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 88d10b3344d03860b470da236a64304564c1a558 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Wed Jul 17 15:46:19 2024 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Wed Jul 17 21:38:59 2024 +0200 cid#1606633 Overflowed constant in the end, it doesn't make sense to allow either of these to be 0 Change-Id: Ie07620c9a168876abd7532a6f52bc7ebd12b83c4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170638 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/filter/source/graphicfilter/icgm/bitmap.cxx b/filter/source/graphicfilter/icgm/bitmap.cxx index ed163206641a..97749fc0da6b 100644 --- a/filter/source/graphicfilter/icgm/bitmap.cxx +++ b/filter/source/graphicfilter/icgm/bitmap.cxx @@ -324,7 +324,7 @@ bool CGMBitmap::ImplGetDimensions( CGMBitmapDescriptor& rDesc ) if ( ( rDesc.mnCompressionMode = mpCGM->ImplGetUI16() ) != 1 ) rDesc.mbStatus = false; - if ( !( rDesc.mnX || rDesc.mnY ) ) + if (!rDesc.mnX || !rDesc.mnY) rDesc.mbStatus = false; sal_uInt32 nHeaderSize = 2 + 3 * nPrecision + 3 * mpCGM->ImplGetPointSize();