Implement wxTextEntryBase::Clear() using Remove() instead of SetValue()

This avoids problems with SetValue() overrides not doing the intended thing
(for example wxComboBox). See #16654
This commit is contained in:
Paul Cornett
2016-02-06 21:43:43 -08:00
parent bc4df78421
commit fc8d3f6fba

View File

@@ -57,7 +57,7 @@ public:
virtual void Replace(long from, long to, const wxString& value); virtual void Replace(long from, long to, const wxString& value);
virtual void Remove(long from, long to) = 0; virtual void Remove(long from, long to) = 0;
virtual void Clear() { SetValue(wxString()); } virtual void Clear() { Remove(0, -1); }
void RemoveSelection(); void RemoveSelection();