diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index 205402dd18..4394783529 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -1757,10 +1757,16 @@ void wxWindowBase::UpdateWindowUI() #if wxUSE_TEXTCTRL wxTextCtrl *text = wxDynamicCast(control, wxTextCtrl); if ( text ) - text->SetValue(event.GetText()); + { + if ( event.GetText() != text->GetValue() ) + text->SetValue(event.GetText()); + } else #endif // wxUSE_TEXTCTRL - control->SetLabel(event.GetText()); + { + if ( event.GetText() != control->GetLabel() ) + control->SetLabel(event.GetText()); + } } }