Kaydet (Commit) a32dea33 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

custom widgets: Use only with LibreOfficeKit.

Change-Id: I9f8f25ee72e93fdf575312b6b0c5d32be9ea45cc
üst 6ce84da7
......@@ -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()
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment