Reset client data flag when wxOwnerDrawnComboBox contents is cleared.

When contents of wxOwnerDrawnComboBox with user data is cleared then client data type should be reset to wxClientData_None value.

See #15896.
This commit is contained in:
Artur Wieczorek
2016-02-04 21:40:21 +01:00
parent 2f4d6f434a
commit 9b3367a45f

View File

@@ -587,6 +587,7 @@ void wxVListBoxComboPopup::ClearClientDatas()
}
m_clientDatas.Empty();
m_clientDataItemsType = wxClientData_None;
}
void wxVListBoxComboPopup::SetItemClientData( unsigned int n,
@@ -998,6 +999,7 @@ void wxOwnerDrawnComboBox::DoClear()
void wxOwnerDrawnComboBox::Clear()
{
DoClear();
SetClientDataType(wxClientData_None);
}
void wxOwnerDrawnComboBox::DoDeleteOneItem(unsigned int n)