desktop/source/lib/init.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 126e1d15fd8764fe95c1df5de28a6149c0b3d380
Author:     Tor Lillqvist <[email protected]>
AuthorDate: Wed Apr 13 16:50:17 2022 +0300
Commit:     Tor Lillqvist <[email protected]>
CommitDate: Wed Apr 13 21:57:52 2022 +0200

    Follow-up fix to Collabora Online "addfont" handling: avoid assertion 
failure
    
    Change-Id: Ib75954a39d515088dbd432d0aa0ca5893194ecc6
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132969
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Tor Lillqvist <[email protected]>

diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 8f991c37f818..392441079820 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -4164,9 +4164,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(OString(pValue)), "");
-        OutputDevice::ImplRefreshAllFontData(true);
+        OutputDevice::ImplRefreshAllFontData(false);
     }
 }
 

Reply via email to