void wxTextEntryBase::DoSetValue(const wxString& value, int flags)
{
- if ( value != GetValue() )
+ if ( value != DoGetValue() )
{
EventsSuppressor noeventsIf(this, !(flags & SetValue_SendEvent));
{
// Except that we still need to generate the event for consistency with
// the normal case when the text does change.
- SendTextUpdatedEvent(GetEditableWindow());
+ if ( flags & SetValue_SendEvent )
+ SendTextUpdatedEvent(GetEditableWindow());
}
SetInsertionPoint(0);