Use wxTextEntry::Clear() in wxOwnerDrawnComboBox::Clear()

This seems more natural than calling SetValue(wxEmptyString).

No real changes.
This commit is contained in:
Vadim Zeitlin
2017-11-07 03:14:49 +01:00
parent 13163fb315
commit 72fe57ec18

View File

@@ -991,9 +991,7 @@ void wxOwnerDrawnComboBox::DoClear()
GetVListBoxComboPopup()->Clear(); GetVListBoxComboPopup()->Clear();
// NB: This really needs to be SetValue() instead of ChangeValue(), wxTextEntry::Clear();
// as wxTextEntry API expects an event to be sent.
SetValue(wxEmptyString);
} }
void wxOwnerDrawnComboBox::Clear() void wxOwnerDrawnComboBox::Clear()