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 /svl | |
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 'svl')
-rw-r--r-- | svl/source/numbers/zforlist.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx index c43e124bbadd..cee75fc9265e 100644 --- a/svl/source/numbers/zforlist.cxx +++ b/svl/source/numbers/zforlist.cxx @@ -3991,7 +3991,10 @@ const NfCurrencyEntry* SvNumberFormatter::GetCurrencyEntry( bool & bFoundBank, } else { - eExtLang = LanguageType((nExtLang < 0) ? -nExtLang : nExtLang); + if (nExtLang < 0) + nExtLang = -nExtLang; + SAL_WARN_IF(nExtLang > 0xFFFF, "svl.numbers", "Out of range Lang Id: " << nExtLang << " from input string: " << OUString(rExtension)); + eExtLang = LanguageType(nExtLang & 0xFFFF); } } else |