cppcanvas/source/mtfrenderer/implrenderer.cxx | 5 ++++- xmloff/source/text/txtdropi.cxx | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-)
New commits: commit 941c0614ff1821cb5254ed674afdb6283a6a4e60 Author: Caolán McNamara <[email protected]> AuthorDate: Thu Aug 8 21:59:04 2024 +0100 Commit: Caolán McNamara <[email protected]> CommitDate: Sun Aug 11 18:20:20 2024 +0200 cid#1608541 bogus Overflowed constant Change-Id: I3785eb10dae32ddd05cfa1a59cdae99965a41169 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171730 Reviewed-by: Caolán McNamara <[email protected]> Tested-by: Caolán McNamara <[email protected]> diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx b/cppcanvas/source/mtfrenderer/implrenderer.cxx index 0577813318b9..e9f3bb56e7bc 100644 --- a/cppcanvas/source/mtfrenderer/implrenderer.cxx +++ b/cppcanvas/source/mtfrenderer/implrenderer.cxx @@ -474,8 +474,11 @@ namespace cppcanvas::internal // rewind metafile to previous position (this method must // not change the current metaaction) - while( nPos-- ) + while (nPos) + { + --nPos; rMtf.WindPrev(); + } if( !pCurrAct ) { commit a3c6a06f3b3283ce66b3bf2b0e224c4d0d6b32c2 Author: Caolán McNamara <[email protected]> AuthorDate: Thu Aug 8 21:54:18 2024 +0100 Commit: Caolán McNamara <[email protected]> CommitDate: Sun Aug 11 18:20:05 2024 +0200 cid#1608578 Overflowed constant Change-Id: Icb68d37af087b01a4e47e2afbc7499d6b3b4cc1f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171728 Tested-by: Caolán McNamara <[email protected]> Reviewed-by: Caolán McNamara <[email protected]> diff --git a/xmloff/source/text/txtdropi.cxx b/xmloff/source/text/txtdropi.cxx index 1d09f4f06d93..a076fcc8fff1 100644 --- a/xmloff/source/text/txtdropi.cxx +++ b/xmloff/source/text/txtdropi.cxx @@ -68,7 +68,7 @@ void XMLTextDropCapImportContext::ProcessAttrs( case XML_ELEMENT(STYLE, XML_DISTANCE): if (GetImport().GetMM100UnitConverter().convertMeasureToCore( - nTmp, aIter.toView(), 0 )) + nTmp, aIter.toView(), 0, SAL_MAX_UINT16 )) { aFormat.Distance = static_cast<sal_uInt16>(nTmp); }
