diff --git a/include/wx/textentry.h b/include/wx/textentry.h index 542dc14cc3..e44f3f0124 100644 --- a/include/wx/textentry.h +++ b/include/wx/textentry.h @@ -57,7 +57,7 @@ public: virtual void Replace(long from, long to, const wxString& value); virtual void Remove(long from, long to) = 0; - virtual void Clear() { SetValue(wxString()); } + virtual void Clear() { Remove(0, -1); } void RemoveSelection();