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 <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Julien Nabet
2023-04-23 14:24:52 +02:00
committed by Noel Grandin
parent 4ee01c29a3
commit 2b87376d7e

View File

@@ -18,6 +18,7 @@
*/
#include <ReportComponent.hxx>
#include <comphelper/solarmutex.hxx>
#include <vcl/svapp.hxx>
#include <vcl/outdev.hxx>
#include <vcl/settings.hxx>
@@ -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