diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-08-26 10:09:10 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-08-28 13:13:22 +0200 |
commit | 4f12805f6e2d5bf68278dd6ab95b8111f36d07eb (patch) | |
tree | 9279b380c34c53b182fa9a53ef0792c3c739c4cb /xmloff | |
parent | fd78b325894bf7dc8c300949dcd822a97c2c8f1c (diff) |
cid#1606710 Overflowed constant
Change-Id: Iaf8b6f7ccd5c8dc39901fee4e386c6e0b9c6d4e8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172514
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/text/XMLIndexChapterInfoEntryContext.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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<sal_uInt16>(nTmp); |