desktop/source/lib/init.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit ab612633003c75dfb30664db8cc8924c086a91ee Author: Tor Lillqvist <[email protected]> AuthorDate: Wed Apr 13 16:50:17 2022 +0300 Commit: Tor Lillqvist <[email protected]> CommitDate: Wed Apr 13 20:09:54 2022 +0200 Follow-up fix to Collabora Online "addfont" handling: avoid assertion failure Change-Id: Ib75954a39d515088dbd432d0aa0ca5893194ecc6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132970 Tested-by: Jenkins Reviewed-by: Tor Lillqvist <[email protected]> diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 442297d5d348..dd9c3874b93c 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -4116,9 +4116,9 @@ static void lo_setOption(LibreOfficeKit* /*pThis*/, const char *pOption, const c else if (strcmp(pOption, "addfont") == 0) { OutputDevice *pDevice = Application::GetDefaultDevice(); - OutputDevice::ImplClearAllFontData(true); + OutputDevice::ImplClearAllFontData(false); pDevice->AddTempDevFont(OUString::fromUtf8(pValue), ""); - OutputDevice::ImplRefreshAllFontData(true); + OutputDevice::ImplRefreshAllFontData(false); } }
