[Libreoffice-commits] core.git: vcl/headless vcl/unx

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Nov 9 18:24:08 UTC 2018


 vcl/headless/svpgdi.cxx                   |    4 +++-
 vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx |    3 ---
 2 files changed, 3 insertions(+), 4 deletions(-)

New commits:
commit a32dea330e5767a68754b19f6005a78618765c1a
Author:     Jan Holesovsky <kendy at collabora.com>
AuthorDate: Fri Nov 9 19:20:31 2018 +0100
Commit:     Jan Holesovsky <kendy at collabora.com>
CommitDate: Fri Nov 9 19:21:59 2018 +0100

    custom widgets: Use only with LibreOfficeKit.
    
    Change-Id: I9f8f25ee72e93fdf575312b6b0c5d32be9ea45cc

diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx
index 39f9176a8d64..0ae7cbd6ba11 100644
--- a/vcl/headless/svpgdi.cxx
+++ b/vcl/headless/svpgdi.cxx
@@ -41,6 +41,7 @@
 #include <basegfx/matrix/b2dhommatrix.hxx>
 #include <basegfx/utils/systemdependentdata.hxx>
 #include <basegfx/matrix/b2dhommatrixtools.hxx>
+#include <comphelper/lok.hxx>
 #include <unx/gendata.hxx>
 
 #if ENABLE_CAIRO_CANVAS
@@ -600,7 +601,8 @@ SvpSalGraphics::SvpSalGraphics()
     , m_ePaintMode(PaintMode::Over)
     , m_aTextRenderImpl(*this)
 {
-    m_pWidgetDraw.reset(new vcl::CustomWidgetDraw(*this));
+    if (comphelper::LibreOfficeKit::isActive())
+        m_pWidgetDraw.reset(new vcl::CustomWidgetDraw(*this));
 }
 
 SvpSalGraphics::~SvpSalGraphics()
diff --git a/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx b/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx
index af2b5fd0e1a0..31c665e1af05 100644
--- a/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx
+++ b/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx
@@ -3389,9 +3389,6 @@ GtkSalGraphics::GtkSalGraphics( GtkSalFrame *pFrame, GtkWidget *pWindow )
       mpFrame( pFrame ),
       mpWindow( pWindow )
 {
-    /* Set Custom Widget Draw*/
-    m_pWidgetDraw.reset(new vcl::CustomWidgetDraw(*this));
-
     if (style_loaded)
         return;
 


More information about the Libreoffice-commits mailing list