tdf#132424 don't generate font previews in advance for lool

Change-Id: I393db7b019fe16b2b7361bd20ec99dc5671ba1ef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92943
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx
index d1c2fe0..f5ad5df 100644
--- a/svtools/source/control/ctrlbox.cxx
+++ b/svtools/source/control/ctrlbox.cxx
@@ -19,6 +19,7 @@

#include <config_folders.h>

#include <comphelper/lok.hxx>
#include <i18nutil/unicode.hxx>
#include <tools/stream.hxx>
#include <vcl/builder.hxx>
@@ -465,7 +466,7 @@

void FontNameBox::EnableWYSIWYG()
{
    if (mbWYSIWYG)
    if (mbWYSIWYG || comphelper::LibreOfficeKit::isActive())
        return;
    mbWYSIWYG = true;