sc/source/core/data/patattr.cxx | 7 +++++++ 1 file changed, 7 insertions(+)
New commits: commit 98706cbfa6307de2f5a11ff0e5edb4120ad57bb8 Author: Heiko Tietze <[email protected]> AuthorDate: Mon Jul 22 14:38:20 2024 +0200 Commit: Heiko Tietze <[email protected]> CommitDate: Tue Jul 23 09:51:55 2024 +0200 Related tdf#159541 - Fix font color issue in Calc Follow-up to I954c9e3f8502a5243c664ed0bf066fb4c4cb4ccc Change-Id: Ib0a5b38739e7b5f73d1e5fbb57687b89b3e86233 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170851 Tested-by: Jenkins Reviewed-by: Heiko Tietze <[email protected]> diff --git a/sc/source/core/data/patattr.cxx b/sc/source/core/data/patattr.cxx index 0bf5cfc6ca41..d738507b2ffc 100644 --- a/sc/source/core/data/patattr.cxx +++ b/sc/source/core/data/patattr.cxx @@ -792,6 +792,13 @@ void ScPatternAttr::fillColor(model::ComplexColor& rComplexColor, const SfxItemS { // pTextConfigColor can be used to avoid repeated lookup of the configured color aSysTextColor = *pTextConfigColor; + if (SC_MOD()->GetColorConfig().GetColorValue(svtools::FONTCOLOR, false).nColor == COL_AUTO) + { + if ( aBackColor.IsDark() && aSysTextColor.IsDark() ) + aSysTextColor = COL_WHITE; + else + aSysTextColor = COL_BLACK; + } } else {
