summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2019-05-15 12:25:26 +0200
committerAndras Timar <andras.timar@collabora.com>2019-05-15 12:42:38 +0200
commit7d55c2b8886ae00a60aa469503f596ee488c25c0 (patch)
tree0201a45a85e5a26970f835d76f81b414b7ead15c
parent34866d32a5f09a4874c338c36b3a64347819bda9 (diff)
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>
-rw-r--r--vcl/headless/svpgdi.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx
index 11c6fc1d9589..db62e92585a2 100644
--- a/vcl/headless/svpgdi.cxx
+++ b/vcl/headless/svpgdi.cxx
@@ -562,9 +562,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));
}
}