summaryrefslogtreecommitdiff
path: root/formula
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2015-10-13 14:44:09 +0200
committerEike Rathke <erack@redhat.com>2015-10-13 15:29:21 +0200
commit01a93d348b84a72b0d6829c2c730263f29a305bc (patch)
tree017914bc55118ed5ab36997ed5ac03f6bdb8e9a8 /formula
parentb7a5dcdbe25b875718230027ae3ae802bbc60bd0 (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
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 1091d07f4159..8cb281f58bc9 100644
--- a/formula/source/ui/dlg/funcutl.cxx
+++ b/formula/source/ui/dlg/funcutl.cxx
@@ -484,8 +484,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
}
}