#include <editutil.hxx>
#include <docsh.hxx>
+#include <config_features.h>
+
tools::SvRef<ScDocShell> ScGlobal::xDrawClipDocShellRef;
SvxSearchItem* ScGlobal::pSearchItem = nullptr;
ScAutoFormat* ScGlobal::pAutoFormat = nullptr;
{
OutputDevice* pDev = Application::GetDefaultDevice();
- if (comphelper::LibreOfficeKit::isActive() || OpenGLWrapper::isVCLOpenGLEnabled())
+ if (comphelper::LibreOfficeKit::isActive()
+#if defined HAVE_FEATURE_OPENGL && defined HAVE_FEATURE_UI
+|| OpenGLWrapper::isVCLOpenGLEnabled()
+#endif
+)
{
// LOK: the below limited precision is not enough for RowColumnHeader.
// OpenGL: limited precision breaks AA of text in charts.