diff options
-rw-r--r-- | svx/source/dialog/langbox.cxx | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/svx/source/dialog/langbox.cxx b/svx/source/dialog/langbox.cxx index 4d9b3dd7ec9a..194a0d8a3f6d 100644 --- a/svx/source/dialog/langbox.cxx +++ b/svx/source/dialog/langbox.cxx @@ -707,6 +707,7 @@ sal_Int32 SvxLanguageComboBox::ImplGetSavedValue() const IMPL_LINK( SvxLanguageComboBox, EditModifyHdl, SvxLanguageComboBox*, /*pEd*/ ) { + EditedAndValid eOldState = meEditedAndValid; OUString aStr( vcl::I18nHelper::filterFormattingChars( GetText())); if (aStr.isEmpty()) meEditedAndValid = EDITED_INVALID; @@ -744,6 +745,24 @@ IMPL_LINK( SvxLanguageComboBox, EditModifyHdl, SvxLanguageComboBox*, /*pEd*/ ) } } } + if (eOldState != meEditedAndValid) + { + if (meEditedAndValid == EDITED_INVALID) + { +#if 0 + //! Gives white on white!?! instead of white on reddish. + SetControlBackground( ::Color( RGB_COLORDATA( 0xff, 0x65, 0x63))); + SetControlForeground( ::Color( COL_WHITE)); +#else + SetControlForeground( ::Color( RGB_COLORDATA( 0xf0, 0, 0))); +#endif + } + else + { + SetControlForeground(); + SetControlBackground(); + } + } return 0; } |