[Libreoffice-commits] core.git: svx/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Wed Jun 24 18:36:35 UTC 2020
svx/source/dialog/hexcolorcontrol.cxx | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
New commits:
commit 3fcfcf9b9fa342537da4aa1772c4106c0c2403f2
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Jun 24 17:16:31 2020 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed Jun 24 20:35:52 2020 +0200
show warning for a bad color
Change-Id: Ib0b43e6d27e32e5fef97b3ee003614ec7d8c3500
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97047
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/svx/source/dialog/hexcolorcontrol.cxx b/svx/source/dialog/hexcolorcontrol.cxx
index b9a4cd645222..3a559e889710 100644
--- a/svx/source/dialog/hexcolorcontrol.cxx
+++ b/svx/source/dialog/hexcolorcontrol.cxx
@@ -81,12 +81,8 @@ Color HexColorControl::GetColor() const
sax::Converter::convertColor(nColor, aStr);
-#if 0
- if (nColor == -1)
- SetControlBackground(COL_RED);
- else
- SetControlBackground();
-#endif
+ m_xEntry->set_message_type(nColor != -1 ? weld::EntryMessageType::Normal
+ : weld::EntryMessageType::Error);
return Color(nColor);
}
More information about the Libreoffice-commits
mailing list