[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - formula/source

Eike Rathke erack at redhat.com
Wed Oct 14 01:01:50 PDT 2015


 formula/source/ui/dlg/funcutl.cxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 02188ace1201b45b3c17fa58a62da794d809b270
Author: Eike Rathke <erack at redhat.com>
Date:   Tue Oct 13 14:44:09 2015 +0200

    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 at libreoffice.org>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/formula/source/ui/dlg/funcutl.cxx b/formula/source/ui/dlg/funcutl.cxx
index c620f38..6c5aaf7 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
     }
 }
 


More information about the Libreoffice-commits mailing list