Attempt to load the theme when LibreOfficeKit is active.

Change-Id: Ie8640b7179a96cb40fb774ede097ca7b3640edd8
Reviewed-on: https://gerrit.libreoffice.org/72349
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
(cherry picked from commit 7d55c2b8886ae00a60aa469503f596ee488c25c0)
Reviewed-on: https://gerrit.libreoffice.org/72353
Tested-by: Jenkins
This commit is contained in:
Jan Holesovsky
2019-05-15 17:22:37 +02:00
committed by Andras Timar
parent 8511fd9023
commit ad9d2faff8
+3 -2
View File
@@ -594,9 +594,10 @@ SvpSalGraphics::SvpSalGraphics()
, m_ePaintMode(PaintMode::Over)
, m_aTextRenderImpl(*this)
{
if (!initWidgetDrawBackends())
bool bLOKActive = comphelper::LibreOfficeKit::isActive();
if (!initWidgetDrawBackends(bLOKActive))
{
if (comphelper::LibreOfficeKit::isActive())
if (bLOKActive)
m_pWidgetDraw.reset(new vcl::CustomWidgetDraw(*this));
}
}