From: Debian LibreOffice Maintainers Date: Tue, 6 Sep 2022 16:54:37 +0000 (+0100) Subject: sc-opengl-optional X-Git-Tag: archive/raspbian/1%7.0.4-4+rpi1+deb11u6^2^2~24 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5367c564491eb9c2c1968530e6af78b75492b83c;p=libreoffice.git sc-opengl-optional Gbp-Pq: Name sc-opengl-optional.diff --- 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.