summaryrefslogtreecommitdiff
path: root/formula
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2015-10-13 14:44:09 +0200
committerAndras Timar <andras.timar@collabora.com>2015-10-17 23:23:26 +0200
commit142e692a9dfd98e77e3a36a751c4765802b6f033 (patch)
tree04cc19e013d22687410fffdc80ab09bed2773466 /formula
parente8ed47be249eba8e145dfe1602d28d811d155ed7 (diff)
do not use white text on white background in control
... setting a control's background color has no effect (until input field text is changed?) Could be observed in the pivot table dialog's source range edit when an invalid range was entered. Change-Id: Iafb2a9016ac6bd4c020273911d62dd7423ee0458 (cherry picked from commit 01a93d348b84a72b0d6829c2c730263f29a305bc) Reviewed-on: https://gerrit.libreoffice.org/19354 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> (cherry picked from commit 02188ace1201b45b3c17fa58a62da794d809b270)
Diffstat (limited to 'formula')
-rw-r--r--formula/source/ui/dlg/funcutl.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/formula/source/ui/dlg/funcutl.cxx b/formula/source/ui/dlg/funcutl.cxx
index c620f383fb32..6c5aaf796835 100644
--- a/formula/source/ui/dlg/funcutl.cxx
+++ b/formula/source/ui/dlg/funcutl.cxx
@@ -519,8 +519,14 @@ void RefEdit::SetRefValid(bool bValid)
}
else
{
+#if 0
+ // Setting background color has no effect here so we'd end up with
+ // white on white!
SetControlForeground(COL_WHITE);
SetControlBackground(0xff6563);
+#else
+ SetControlForeground( ::Color( RGB_COLORDATA( 0xf0, 0, 0)));
+#endif
}
}