diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-12-16 11:29:56 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-12-18 10:41:30 +0000 |
commit | 68809ffde7d50a5f47afa5a1235025513762df8c (patch) | |
tree | 0f8cabf173c130be088f8a5e685e192db2813f16 /xmloff/source | |
parent | 8bd1caba57f266ca11f89315fa9cce16041b5239 (diff) |
crashtesting: assert seen with forum-mso-en4-747641.xlsx with LCID F6E0B
see on export to ods
input .xlsx contains a LCID of F6E0B
<numFmt numFmtId="169" formatCode="_-[$£-F6E0B]* #,##0.00_-;\-[$£-F6E0B]* #,##0.00_-;_-[$£-F6E0B]* "-"??_-;_-@_-"/>
Change-Id: I543164dba4cc8b1c86508a3e3e39b43900c06484
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144321
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'xmloff/source')
-rw-r--r-- | xmloff/source/style/xmlnumfe.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmloff/source/style/xmlnumfe.cxx b/xmloff/source/style/xmlnumfe.cxx index a2938b1d998d..01367fe12e55 100644 --- a/xmloff/source/style/xmlnumfe.cxx +++ b/xmloff/source/style/xmlnumfe.cxx @@ -362,7 +362,8 @@ void SvXMLNumFmtExport::WriteCurrencyElement_Impl( const OUString& rString, sal_Int32 nLang = o3tl::toInt32(rExt, 16); if ( nLang < 0 ) nLang = -nLang; - AddLanguageAttr_Impl( LanguageType(nLang) ); // adds to pAttrList + SAL_WARN_IF(nLang > 0xFFFF, "xmloff.style", "Out of range Lang Id: " << nLang << " from input string: " << OUString(rExt)); + AddLanguageAttr_Impl( LanguageType(nLang & 0xFFFF) ); // adds to pAttrList } SvXMLElementExport aElem( rExport, |