cid#1608578 Overflowed constant

Change-Id: Id7f5b94208f75a0fdc8ebb769b5a8265312c0995
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173542
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
Caolán McNamara
2024-09-17 10:13:50 +01:00
parent cf6dd625a4
commit 0810f7d891

View File

@@ -68,9 +68,9 @@ void XMLTextDropCapImportContext::ProcessAttrs(
case XML_ELEMENT(STYLE, XML_DISTANCE): case XML_ELEMENT(STYLE, XML_DISTANCE):
if (GetImport().GetMM100UnitConverter().convertMeasureToCore( if (GetImport().GetMM100UnitConverter().convertMeasureToCore(
nTmp, aIter.toView(), 0, SAL_MAX_UINT16 )) nTmp, aIter.toView(), 0, SAL_MAX_INT16 ))
{ {
aFormat.Distance = static_cast<sal_uInt16>(nTmp); aFormat.Distance = static_cast<sal_Int16>(nTmp);
} }
break; break;