From: Debian LibreOffice Maintainers Date: Fri, 7 Feb 2020 15:26:56 +0000 (+0000) Subject: sc-opengl-optional X-Git-Tag: archive/raspbian/1%6.4.1_rc1-2+rpi1~1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e902ed283c8bceaacc1b8627cd0e5c78cf50b5f8;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 050fd823b4e..f7d4c93d2d8 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; @@ -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.