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);