X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c87df234ac1e46508ee0cab29c3ee933cd3151b8..8626e0b73de21463908bf855700c31e41c661b30:/src/common/textentrycmn.cpp diff --git a/src/common/textentrycmn.cpp b/src/common/textentrycmn.cpp index 54b738a9ba..3e5c6117e0 100644 --- a/src/common/textentrycmn.cpp +++ b/src/common/textentrycmn.cpp @@ -224,7 +224,7 @@ void wxTextEntryBase::AppendText(const wxString& text) void wxTextEntryBase::DoSetValue(const wxString& value, int flags) { - if ( value != GetValue() ) + if ( value != DoGetValue() ) { EventsSuppressor noeventsIf(this, !(flags & SetValue_SendEvent)); @@ -235,7 +235,8 @@ void wxTextEntryBase::DoSetValue(const wxString& value, int flags) { // 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);