Don't crash in wxOSX wxDataViewChoiceRenderer if selection was cancelled.

Check for the index validity and ignore the value of -1 as it is passed if the
selection in the popup was cancelled.

Closes #16017.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@76045 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2014-03-02 15:49:52 +00:00
parent aa6e3dc67f
commit 1e879aa8b6
2 changed files with 13 additions and 1 deletions

View File

@@ -640,6 +640,7 @@ wxMSW:
wxOSX:
- Fix incorrect joystick detection in configure (Lauri Nurmi).
- Fix crash in wxDataViewCtrl when cancelling choice selection (hartwigw).
- Add support for wxEVT_COMBOBOX_DROPDOWN and wxEVT_COMBOBOX_CLOSEUP
events to wxOSX/Cocoa (Igor Korot).