sc/source/core/data/patattr.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit eb1064e121436df61a6fba827a8aa081022b16ca Author: Henry Castro <hcas...@collabora.com> AuthorDate: Tue May 21 17:32:54 2024 -0400 Commit: Henry Castro <hcas...@collabora.com> CommitDate: Fri May 24 18:30:04 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> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168021 diff --git a/sc/source/core/data/patattr.cxx b/sc/source/core/data/patattr.cxx index 34cfa1c52175..2de19a4d952b 100644 --- a/sc/source/core/data/patattr.cxx +++ b/sc/source/core/data/patattr.cxx @@ -509,7 +509,8 @@ void ScPatternAttr::fillColor(model::ComplexColor& rComplexColor, const SfxItemS if (pViewShell) { const ScViewRenderingOptions& rViewRenderingOptions = pViewShell->GetViewRenderingData(); - aBackColor = rViewRenderingOptions.GetDocColor(); + aBackColor = eAutoMode == SC_AUTOCOL_PRINT ? COL_WHITE : + rViewRenderingOptions.GetDocColor(); } } }