sw/source/uibase/config/viewopt.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit 8811bf5aa94df5beff2249e1f51d383b3df6409c Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Wed May 31 12:59:49 2023 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Wed May 31 16:51:49 2023 +0200 Related: tdf#155507 don't enable field shadings in online case 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 <caolan.mcnam...@collabora.com> 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);