From 8811bf5aa94df5beff2249e1f51d383b3df6409c Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 31 May 2023 12:59:49 +0100 Subject: Related: tdf#155507 don't enable field shadings in online case MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit as in initializeForTiledRendering we don't want field shadings Change-Id: Ie1ea2c365bcd78cdfd554646474c4ef05a19fcda Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152425 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- sw/source/uibase/config/viewopt.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sw/source') diff --git a/sw/source/uibase/config/viewopt.cxx b/sw/source/uibase/config/viewopt.cxx index a91a554ec5ec..7e3d7674ab50 100644 --- a/sw/source/uibase/config/viewopt.cxx +++ b/sw/source/uibase/config/viewopt.cxx @@ -125,7 +125,9 @@ SwViewColors::SwViewColors(const svtools::ColorConfig& rConfig) aValue = rConfig.GetColorValue(svtools::WRITERFIELDSHADINGS); m_aFieldShadingsColor = aValue.nColor; - if(aValue.bIsVisible) + // as in initializeForTiledRendering we don't want to enable + // field shadings for the online case + if (aValue.bIsVisible && !comphelper::LibreOfficeKit::isActive()) m_nAppearanceFlags |= ViewOptFlags::FieldShadings; aValue = rConfig.GetColorValue(svtools::WRITERSECTIONBOUNDARIES); -- cgit