From 2b87376d7e8cc9d5973a8ccd4c9fdf398ebbd2a0 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sun, 23 Apr 2023 14:24:52 +0200 Subject: [PATCH] tdf#154886: fix Report builder mutex assertion Thank you Noel for the hint! Change-Id: Icb1f63deaffc454e0dcc3b736c9214d93b6871df Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150826 Reviewed-by: Ilmari Lauhakangas Tested-by: Jenkins Reviewed-by: Noel Grandin --- reportdesign/source/core/api/ReportComponent.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reportdesign/source/core/api/ReportComponent.cxx b/reportdesign/source/core/api/ReportComponent.cxx index 5c036b5d6bdf..adfee3596914 100644 --- a/reportdesign/source/core/api/ReportComponent.cxx +++ b/reportdesign/source/core/api/ReportComponent.cxx @@ -18,6 +18,7 @@ */ #include +#include #include #include #include @@ -41,6 +42,7 @@ namespace reportdesign static void lcl_getDefaultFonts( vcl::Font& rLatinFont, vcl::Font& rCJKFont, vcl::Font& rCTLFont, LanguageType _eLatin, LanguageType _eCJK, LanguageType _eCTL ) { + SolarMutexGuard g; LanguageType eLatin = _eLatin; // If the UI language is Korean, the default Latin font has to