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:
@@ -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<sal_uInt16>(nTmp);
|
||||
aFormat.Distance = static_cast<sal_Int16>(nTmp);
|
||||
}
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user