svx/source/dialog/hexcolorcontrol.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-)
New commits: commit 3fcfcf9b9fa342537da4aa1772c4106c0c2403f2 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Wed Jun 24 17:16:31 2020 +0100 Commit: Caolán McNamara <caol...@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 <caol...@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); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits