From 4f12805f6e2d5bf68278dd6ab95b8111f36d07eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Mon, 26 Aug 2024 10:09:10 +0100 Subject: [PATCH] cid#1606710 Overflowed constant MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Iaf8b6f7ccd5c8dc39901fee4e386c6e0b9c6d4e8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172514 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- xmloff/source/text/XMLIndexChapterInfoEntryContext.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmloff/source/text/XMLIndexChapterInfoEntryContext.cxx b/xmloff/source/text/XMLIndexChapterInfoEntryContext.cxx index aa1fd6092e2c..b8268e9f0b3b 100644 --- a/xmloff/source/text/XMLIndexChapterInfoEntryContext.cxx +++ b/xmloff/source/text/XMLIndexChapterInfoEntryContext.cxx @@ -101,7 +101,7 @@ void XMLIndexChapterInfoEntryContext::startFastElement( case XML_ELEMENT(TEXT, XML_OUTLINE_LEVEL): { sal_Int32 nTmp; - if (::sax::Converter::convertNumber(nTmp, aIter.toView(), 0, SAL_MAX_UINT16)) + if (::sax::Converter::convertNumber(nTmp, aIter.toView(), 0, SAL_MAX_INT16)) { //control on range is carried out in the UNO level nOutlineLevel = static_cast(nTmp);