sc/source/core/data/column3.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
New commits: commit ade343ea8b498efb88473a0a3879c2711d7dd33c Author: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de> AuthorDate: Wed May 19 16:22:52 2021 +0200 Commit: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de> CommitDate: Thu May 20 08:15:47 2021 +0200 tdf#76258 Skip automatic colors in color filter popup Change-Id: Ic8ed4b2a503c347895668b18744c9fee02d92e81 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115815 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de> diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx index de6870a6a9c9..405fb4363897 100644 --- a/sc/source/core/data/column3.cxx +++ b/sc/source/core/data/column3.cxx @@ -2429,11 +2429,13 @@ class FilterEntriesHandler ScAddress aPos(rColumn.GetCol(), nRow, rColumn.GetTab()); const SvxColorItem* pColor = rColumn.GetDoc().GetAttr(aPos, ATTR_FONT_COLOR); Color textColor = pColor->GetValue(); + if (textColor != COL_AUTO) + mrFilterEntries.addTextColor(textColor); const SvxBrushItem* pBrush = rColumn.GetDoc().GetAttr(aPos, ATTR_BACKGROUND); Color backgroundColor = pBrush->GetColor(); - mrFilterEntries.addTextColor(textColor); - mrFilterEntries.addBackgroundColor(backgroundColor); + if (backgroundColor != COL_AUTO) + mrFilterEntries.addBackgroundColor(backgroundColor); if (rCell.hasString()) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits