diff --git a/source/styles/number_format.cpp b/source/styles/number_format.cpp index acaf95537..4acf4c8e3 100644 --- a/source/styles/number_format.cpp +++ b/source/styles/number_format.cpp @@ -36,7 +36,7 @@ namespace { const std::unordered_map &builtin_formats() { - static std::unordered_map formats; + thread_local static std::unordered_map formats; if (formats.size() == 0) {