diff options
author | Henry Castro <hcastro@collabora.com> | 2024-05-21 17:32:54 -0400 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2024-05-24 18:30:04 +0200 |
commit | eb1064e121436df61a6fba827a8aa081022b16ca (patch) | |
tree | 10d8af35f16d373b49b92cb1317445f7b1dc5815 | |
parent | fbdd2299a470f852a7c066d878c6a3b586f952a9 (diff) |
lok: sc: fix print mode document back color
Signed-off-by: Henry Castro <hcastro@collabora.com>
Change-Id: I334ff51230ef01d7a87790409a6d76541c57ba54
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167911
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168021
-rw-r--r-- | sc/source/core/data/patattr.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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(); } } } |