summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2022-04-13 16:50:17 +0300
committerTor Lillqvist <tml@collabora.com>2022-04-13 20:09:54 +0200
commitab612633003c75dfb30664db8cc8924c086a91ee (patch)
tree7bf407c752df15c2d41a7e7982f85ba4f86a7f81
parent2bc4d1d22fdbd9d97c66bb53762b4b4bf7b61b47 (diff)
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 <tml@collabora.com>
-rw-r--r--desktop/source/lib/init.cxx4
1 files changed, 2 insertions, 2 deletions
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);
}
}