diff options
Diffstat (limited to 'chart2/source/controller/main/ChartWindow.cxx')
-rw-r--r-- | chart2/source/controller/main/ChartWindow.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chart2/source/controller/main/ChartWindow.cxx b/chart2/source/controller/main/ChartWindow.cxx index 1c6d6ae4b0db..25bdc33c7a13 100644 --- a/chart2/source/controller/main/ChartWindow.cxx +++ b/chart2/source/controller/main/ChartWindow.cxx @@ -24,7 +24,7 @@ #include <vcl/help.hxx> #include <vcl/openglwin.hxx> #include <vcl/settings.hxx> - +#include <config_features.h> #include <com/sun/star/chart2/X3DChartWindowProvider.hpp> using namespace ::com::sun::star; @@ -49,7 +49,11 @@ ChartWindow::ChartWindow( ChartController* pController, vcl::Window* pParent, Wi : Window(pParent, nStyle) , m_pWindowController( pController ) , m_bInPaint(false) +#if HAVE_FEATURE_OPENGL , m_pOpenGLWindow(VclPtr<OpenGLWindow>::Create(this)) +#else + , m_pOpenGLWindow(nullptr) +#endif { this->SetHelpId( HID_SCH_WIN_DOCUMENT ); this->SetMapMode( MapMode(MAP_100TH_MM) ); |