sc/source/core/data/patattr.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 7cd07676dfb6a27957d60fb968fd2d3b8abc873c
Author:     Henry Castro <hcas...@collabora.com>
AuthorDate: Tue May 21 17:32:54 2024 -0400
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Fri May 24 12:31:29 2024 +0200

    lok: sc: fix print mode document back color
    
    Signed-off-by: Henry Castro <hcas...@collabora.com>
    Change-Id: I334ff51230ef01d7a87790409a6d76541c57ba54
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167911
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    (cherry picked from commit 11eaf501798cec2c5758cd7fd447998e202ae1f9)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167944
    Tested-by: Jenkins

diff --git a/sc/source/core/data/patattr.cxx b/sc/source/core/data/patattr.cxx
index 4e0ab28a07c3..162e46d5de4a 100644
--- a/sc/source/core/data/patattr.cxx
+++ b/sc/source/core/data/patattr.cxx
@@ -829,7 +829,8 @@ void ScPatternAttr::fillColor(model::ComplexColor& 
rComplexColor, const SfxItemS
                 if (pViewShell)
                 {
                     const ScViewRenderingOptions& rViewRenderingOptions = 
pViewShell->GetViewRenderingData();
-                    aBackColor = rViewRenderingOptions.GetDocColor();
+                    aBackColor = eAutoMode == ScAutoFontColorMode::Print ? 
COL_WHITE :
+                        rViewRenderingOptions.GetDocColor();
                 }
             }
         }

Reply via email to