summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-03-30 22:08:13 +0000
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-03-31 18:03:46 +0200
commitf558872f9184d35c6ef21823645e0297165b2ca5 (patch)
tree2caead43a9cbdf58db6cefe87e67b1140dd4fa45 /svl
parent0544fb193b949dbcff97e8c475063dd72583ad1d (diff)
crashtesting: crash seen with multiple threads calling GetTheCurrencyTable
seen with soffice --convert-to xlsx forum-mso-en4-207468.xls Change-Id: I89d16938b3f8780776f38b0e94ce3885d93ac252 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165585 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/numbers/zforlist.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/svl/source/numbers/zforlist.cxx b/svl/source/numbers/zforlist.cxx
index 5939e93bd67a..02e48b8468cc 100644
--- a/svl/source/numbers/zforlist.cxx
+++ b/svl/source/numbers/zforlist.cxx
@@ -3988,6 +3988,7 @@ SvNFEngine::Accessor SvNFEngine::GetRWPolicy(SvNFFormatData& rFormatData)
SvNFEngine::Accessor SvNFEngine::GetROPolicy(const SvNFFormatData& rFormatData, SvNFFormatData::DefaultFormatKeysMap& rFormatCache)
{
+ SvNumberFormatter::GetTheCurrencyTable(); // create this now so threads don't attempt to create it simultaneously
return
{
std::bind(SvNFEngine::GetCLOffsetRO, std::ref(rFormatData), std::placeholders::_1, std::placeholders::_2, std::placeholders::_3),