diff --git a/src/common/textentrycmn.cpp b/src/common/textentrycmn.cpp index 971f562668..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)); diff --git a/src/gtk/textentry.cpp b/src/gtk/textentry.cpp index 1354841812..a1dad35bc6 100644 --- a/src/gtk/textentry.cpp +++ b/src/gtk/textentry.cpp @@ -155,7 +155,7 @@ void wxTextEntry::WriteText(const wxString& value) void wxTextEntry::DoSetValue(const wxString& value, int flags) { - if (value != GetValue()) + if (value != DoGetValue()) { // use Remove() rather than SelectAll() to avoid unnecessary clipboard // operations, and prevent triggering an apparent bug in GTK which