sc/source/core/data/patattr.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 11eaf501798cec2c5758cd7fd447998e202ae1f9 Author: Henry Castro <hcas...@collabora.com> AuthorDate: Tue May 21 17:32:54 2024 -0400 Commit: Henry Castro <hcas...@collabora.com> CommitDate: Thu May 23 15:21:39 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> diff --git a/sc/source/core/data/patattr.cxx b/sc/source/core/data/patattr.cxx index 3799f22c2c52..32905201def9 100644 --- a/sc/source/core/data/patattr.cxx +++ b/sc/source/core/data/patattr.cxx @@ -513,7 +513,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(); } } }