sc-opengl-optional
authorDebian LibreOffice Maintainers <debian-openoffice@lists.debian.org>
Wed, 18 Aug 2021 06:56:00 +0000 (07:56 +0100)
committerRene Engelhard <rene@debian.org>
Wed, 18 Aug 2021 06:56:00 +0000 (07:56 +0100)
Gbp-Pq: Name sc-opengl-optional.diff

sc/source/core/data/global.cxx

index 221e1d31eb50ef3714fe353d05aac2b5363968c8..1a89a0ee686db4c8bce3a75b9015da2422211dac 100644 (file)
@@ -71,6 +71,8 @@
 #include <editutil.hxx>
 #include <docsh.hxx>
 
+#include <config_features.h>
+
 tools::SvRef<ScDocShell>  ScGlobal::xDrawClipDocShellRef;
 std::unique_ptr<SvxSearchItem> ScGlobal::xSearchItem;
 std::unique_ptr<ScAutoFormat> ScGlobal::xAutoFormat;
@@ -460,7 +462,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.