summaryrefslogtreecommitdiff
path: root/chart2/inc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-02-05 22:40:13 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-02-06 08:42:55 +0000
commitd8a1059ef2270681861da183ce486b636c07a4b7 (patch)
treee8efc3df30bd9fdba0d8d4439b321f45b65bfd92 /chart2/inc
parenta6fd34907fa9d2eedcd6fba2bb4c1e3340d88fb1 (diff)
OpenGLWindow typeinfo unavailable without HAVE_FEATURE_OPENGL
Change-Id: Ie06c1121502db9b1a869f657f70d3b45db610e2f
Diffstat (limited to 'chart2/inc')
-rw-r--r--chart2/inc/ChartModel.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/chart2/inc/ChartModel.hxx b/chart2/inc/ChartModel.hxx
index 05999229a296..da2368351143 100644
--- a/chart2/inc/ChartModel.hxx
+++ b/chart2/inc/ChartModel.hxx
@@ -19,6 +19,8 @@
#ifndef INCLUDED_CHART2_INC_CHARTMODEL_HXX
#define INCLUDED_CHART2_INC_CHARTMODEL_HXX
+#include <config_features.h>
+
#include "LifeTime.hxx"
#include <com/sun/star/frame/XModel.hpp>
@@ -467,13 +469,17 @@ public:
void getNextTimePoint();
void setTimeBasedRange(sal_Int32 nStart, sal_Int32 nEnd);
+#if HAVE_FEATURE_OPENGL
OpenGLWindow* getOpenGLWindow() { return mpOpenGLWindow;}
+#endif
private:
sal_Int32 mnStart;
sal_Int32 mnEnd;
bool bSet;
+#if HAVE_FEATURE_OPENGL
VclPtr<OpenGLWindow> mpOpenGLWindow;
+#endif
};
} // namespace chart