From 72fe57ec182ba0bc9a51ad27adc883a945d39b81 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 7 Nov 2017 03:14:49 +0100 Subject: [PATCH] Use wxTextEntry::Clear() in wxOwnerDrawnComboBox::Clear() This seems more natural than calling SetValue(wxEmptyString). No real changes. --- src/generic/odcombo.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/generic/odcombo.cpp b/src/generic/odcombo.cpp index 1f7c923839..89ec54016b 100644 --- a/src/generic/odcombo.cpp +++ b/src/generic/odcombo.cpp @@ -991,9 +991,7 @@ void wxOwnerDrawnComboBox::DoClear() GetVListBoxComboPopup()->Clear(); - // NB: This really needs to be SetValue() instead of ChangeValue(), - // as wxTextEntry API expects an event to be sent. - SetValue(wxEmptyString); + wxTextEntry::Clear(); } void wxOwnerDrawnComboBox::Clear()