From 0810f7d891a8b94bd77d02d7bb1efd2a3f9440fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Tue, 17 Sep 2024 10:13:50 +0100 Subject: [PATCH] cid#1608578 Overflowed constant MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Id7f5b94208f75a0fdc8ebb769b5a8265312c0995 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173542 Tested-by: Caolán McNamara Reviewed-by: Caolán McNamara --- xmloff/source/text/txtdropi.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xmloff/source/text/txtdropi.cxx b/xmloff/source/text/txtdropi.cxx index a076fcc8fff1..896da4eed561 100644 --- a/xmloff/source/text/txtdropi.cxx +++ b/xmloff/source/text/txtdropi.cxx @@ -68,9 +68,9 @@ void XMLTextDropCapImportContext::ProcessAttrs( case XML_ELEMENT(STYLE, XML_DISTANCE): if (GetImport().GetMM100UnitConverter().convertMeasureToCore( - nTmp, aIter.toView(), 0, SAL_MAX_UINT16 )) + nTmp, aIter.toView(), 0, SAL_MAX_INT16 )) { - aFormat.Distance = static_cast(nTmp); + aFormat.Distance = static_cast(nTmp); } break;