[Libreoffice-commits] core.git: sc/source
Samuel Mehrbrodt (via logerrit)
logerrit at kemper.freedesktop.org
Thu May 20 06:16:24 UTC 2021
sc/source/core/data/column3.cxx | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit ade343ea8b498efb88473a0a3879c2711d7dd33c
Author: Samuel Mehrbrodt <samuel.mehrbrodt at allotropia.de>
AuthorDate: Wed May 19 16:22:52 2021 +0200
Commit: Samuel Mehrbrodt <samuel.mehrbrodt at 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.mehrbrodt at 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())
{
More information about the Libreoffice-commits
mailing list