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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user