summaryrefslogtreecommitdiff
path: root/xmloff/source/text
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-08-08 21:54:18 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-08-11 18:20:05 +0200
commita3c6a06f3b3283ce66b3bf2b0e224c4d0d6b32c2 (patch)
tree6885fb0c7b8135fbfb7d6ebab88cb858732c4eb2 /xmloff/source/text
parenta18b0b4aa56c47cadd0b6d6d1ad5842cf16e9835 (diff)
cid#1608578 Overflowed constant
Change-Id: Icb68d37af087b01a4e47e2afbc7499d6b3b4cc1f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171728 Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'xmloff/source/text')
-rw-r--r--xmloff/source/text/txtdropi.cxx2
1 files changed, 1 insertions, 1 deletions
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);
}