[ 1494429 ] Fix for wxOwnerDrawnComboBox::Clear() crash.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39328 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
133f3119f0
commit
cdc99dddd2
@ -384,6 +384,8 @@ void wxVListBoxComboPopup::Clear()
|
||||
|
||||
ClearClientDatas();
|
||||
|
||||
m_value = wxNOT_FOUND;
|
||||
|
||||
if ( IsCreated() )
|
||||
wxVListBox::SetItemCount(0);
|
||||
}
|
||||
@ -677,7 +679,7 @@ void wxOwnerDrawnComboBox::Clear()
|
||||
|
||||
m_popupInterface->Clear();
|
||||
|
||||
GetTextCtrl()->SetValue(wxEmptyString);
|
||||
SetValue(wxEmptyString);
|
||||
}
|
||||
|
||||
void wxOwnerDrawnComboBox::Delete(unsigned int n)
|
||||
|
Loading…
Reference in New Issue
Block a user