sc-opengl-optional
authorDebian LibreOffice Maintainers <debian-openoffice@lists.debian.org>
Sun, 21 Jun 2020 11:07:16 +0000 (12:07 +0100)
committerRene Engelhard <rene@debian.org>
Sun, 21 Jun 2020 11:07:16 +0000 (12:07 +0100)
Gbp-Pq: Name sc-opengl-optional.diff

sc/source/core/data/global.cxx

index 050fd823b4ee32e57d5b0c61846c16546cf445db..f7d4c93d2d8ebc25d3925d6ca63cfd0d978b7f94 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;
@@ -472,7 +474,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.