summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2023-05-31 12:59:49 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2023-05-31 16:51:49 +0200
commit8811bf5aa94df5beff2249e1f51d383b3df6409c (patch)
tree6437ba1f1fd72825087634bb5cb95c14a1ccb76d
parent8ac06469dc0338ed57af76cba9d96117d753422c (diff)
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.mcnamara@collabora.com>
-rw-r--r--sw/source/uibase/config/viewopt.cxx4
1 files changed, 3 insertions, 1 deletions
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);