Keep client data in sync when deleting items from wxOSX wxComboBox.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 2 Jul 2012 15:03:08 +0000 (15:03 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 2 Jul 2012 15:03:08 +0000 (15:03 +0000)
commitd8c0d15d32ed5a362a8ef6a6a54de1f5bdbaf7f2
treecd5c57b440410f1bc201ba3d3d72d8895b4c3f7e
parent4b0bf080e13153e34236d97a2c00bda743131a63
Keep client data in sync when deleting items from wxOSX wxComboBox.

Correspondence between item indices and their client data was broken if any
items were deleted or the combobox was cleared entirely. Fix this by updating
the client data array whenever this happens.

Closes #14147.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/osx/combobox_osx.cpp