From 086941f0e60c4a41b84cad9c67ad24f8a70133fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Tue, 17 Sep 2024 10:31:08 +0100 Subject: [PATCH] cid#1608244 Overflowed constant MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ia96ff4eb0840c6136cb6cd0eefee1cc487bce355 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173547 Tested-by: Caolán McNamara Reviewed-by: Caolán McNamara --- xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx b/xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx index a9657038c7f0..8de2cb40a6a7 100644 --- a/xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx +++ b/xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx @@ -176,9 +176,9 @@ void XMLFootnoteConfigurationImportContext::SetAttribute( sal_Int32 nElement, case XML_ELEMENT(TEXT, XML_OFFSET): // for backwards compatibility with SRC630 & earlier { sal_Int32 nTmp; - if (::sax::Converter::convertNumber(nTmp, rValue, 0, SAL_MAX_UINT16)) + if (::sax::Converter::convertNumber(nTmp, rValue, 0, SAL_MAX_INT16)) { - nOffset = static_cast(nTmp); + nOffset = static_cast(nTmp); } break; }