sw/source/uibase/config/viewopt.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit d6f093c8b0ba4590dfea0891b2399fff9cf67bbe
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 14:42:58 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/+/152433
    Tested-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    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 fb9f9abbac12..fba5bae14424 100644
--- a/sw/source/uibase/config/viewopt.cxx
+++ b/sw/source/uibase/config/viewopt.cxx
@@ -124,7 +124,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);

Reply via email to