Set event string field for wxOwnerDrawnComboBox events

Call wxCommandEvent::SetString() for consistency with the native
wxComboBox.
This commit is contained in:
Vadim Zeitlin
2019-07-21 21:37:05 +02:00
parent 6caba72637
commit cd8dade23c

View File

@@ -238,6 +238,8 @@ void wxVListBoxComboPopup::SendComboBoxEvent( int selection )
evt.SetEventObject(m_combo);
evt.SetInt(selection);
if ( selection != wxNOT_FOUND )
evt.SetString(m_strings[selection]);
// Set client data, if any
if ( selection >= 0 && (int)m_clientDatas.size() > selection )