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.mcnamara@collabora.com>
This commit is contained in:
parent
fa496381da
commit
7f09dc4ba9
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue