desktop/source/lib/init.cxx | 1 + 1 file changed, 1 insertion(+) New commits: commit 7f09dc4ba952854adfe0165efcca401436c8671e Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Tue Oct 1 16:58:21 2024 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Wed Oct 2 16:10:00 2024 +0200
Get SolarMutex before calling ImplClearAllFontData to avoid: vcl/source/app/dbggui.cxx:35: void ImplDbgTestSolarMutex(): Assertion `ImplGetSVData()->mpDefInst->GetYieldMutex()->IsCurrentThread() && "SolarMutex not owned!"' failed. Change-Id: I6d56bb05e8a89190838c5437043bc61034607d8e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174328 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 043bc769450e..4bd1beda9abc 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -5265,6 +5265,7 @@ static void lo_setOption(LibreOfficeKit* /*pThis*/, const char *pOption, const c OUString sMagicFileName = "file:///:FD:/" + OUString::number(fd); + SolarMutexGuard aGuard; OutputDevice *pDevice = Application::GetDefaultDevice(); OutputDevice::ImplClearAllFontData(false); pDevice->AddTempDevFont(sMagicFileName, u""_ustr);