sc-opengl-optional
authorDebian LibreOffice Maintainers <debian-openoffice@lists.debian.org>
Thu, 3 Sep 2020 07:43:55 +0000 (08:43 +0100)
committerRene Engelhard <rene@debian.org>
Thu, 3 Sep 2020 07:43:55 +0000 (08:43 +0100)
Gbp-Pq: Name sc-opengl-optional.diff

sc/source/core/data/global.cxx

index c535a9b7d8e9ca635393788c116ebaf8255b7245..ada4f1c62a2669ea38bd93caeea64e86238fc7ae 100644 (file)
@@ -71,6 +71,8 @@
 #include <editutil.hxx>
 #include <docsh.hxx>
 
+#include <config_features.h>
+
 tools::SvRef<ScDocShell>  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.