From afa2d6022e6e8895eee41d2b2a2d6dfc076b5ec1 Mon Sep 17 00:00:00 2001 From: Debian LibreOffice Maintainers Date: Sun, 3 Jan 2021 17:54:17 +0000 Subject: [PATCH] sc-opengl-optional Gbp-Pq: Name sc-opengl-optional.diff --- sc/source/core/data/global.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sc/source/core/data/global.cxx b/sc/source/core/data/global.cxx index c535a9b7d8e..ada4f1c62a2 100644 --- a/sc/source/core/data/global.cxx +++ b/sc/source/core/data/global.cxx @@ -71,6 +71,8 @@ #include #include +#include + tools::SvRef ScGlobal::xDrawClipDocShellRef; SvxSearchItem* ScGlobal::pSearchItem = nullptr; ScAutoFormat* ScGlobal::pAutoFormat = nullptr; @@ -468,7 +470,11 @@ void ScGlobal::InitPPT() { 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. -- 2.30.2