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
This commit is contained in:
Eike Rathke 2015-10-13 14:44:09 +02:00
parent b7a5dcdbe2
commit 01a93d348b

View File

@ -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
}
}