diff options
author | Jan Holesovsky <kendy@collabora.com> | 2019-05-15 12:25:26 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2019-09-03 16:25:32 +0200 |
commit | ba6a94476f8c32950fa96aeca64325d627c4d410 (patch) | |
tree | 666742297b9cbe013f42814979f1767d1ed5080e /vcl/headless | |
parent | 9a5356f41bff6f8697bff1939213c41173c4e373 (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>
(cherry picked from commit 7d55c2b8886ae00a60aa469503f596ee488c25c0)
Reviewed-on: https://gerrit.libreoffice.org/72353
Tested-by: Jenkins
Reviewed-on: https://gerrit.libreoffice.org/78561
Diffstat (limited to 'vcl/headless')
-rw-r--r-- | vcl/headless/svpgdi.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx index aa697055030d..b0f6f530e8bd 100644 --- a/vcl/headless/svpgdi.cxx +++ b/vcl/headless/svpgdi.cxx @@ -596,9 +596,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)); } } |