[ 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:
@@ -384,6 +384,8 @@ void wxVListBoxComboPopup::Clear()
|
|||||||
|
|
||||||
ClearClientDatas();
|
ClearClientDatas();
|
||||||
|
|
||||||
|
m_value = wxNOT_FOUND;
|
||||||
|
|
||||||
if ( IsCreated() )
|
if ( IsCreated() )
|
||||||
wxVListBox::SetItemCount(0);
|
wxVListBox::SetItemCount(0);
|
||||||
}
|
}
|
||||||
@@ -677,7 +679,7 @@ void wxOwnerDrawnComboBox::Clear()
|
|||||||
|
|
||||||
m_popupInterface->Clear();
|
m_popupInterface->Clear();
|
||||||
|
|
||||||
GetTextCtrl()->SetValue(wxEmptyString);
|
SetValue(wxEmptyString);
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxOwnerDrawnComboBox::Delete(unsigned int n)
|
void wxOwnerDrawnComboBox::Delete(unsigned int n)
|
||||||
|
Reference in New Issue
Block a user