]> git.saurik.com Git - wxWidgets.git/commit - src/osx/cocoa/combobox.mm
Fix selection corner cases in wxOSX wxComboBox.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 22 Aug 2010 22:15:32 +0000 (22:15 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 22 Aug 2010 22:15:32 +0000 (22:15 +0000)
commit6f07c007a54c53c1561944f139254e8afa1477cc
treeb54cd5a22bf658fea5c1737f5f6d715a9648a08b
parent5623dce7cdcc168d81a378b0821569450411358f
Fix selection corner cases in wxOSX wxComboBox.

Don't crash in wxComboBox::GetString() if it's passed an invalid index.

Don't call GetString() with invalid index from GetStringSelection() if there
is no selection.

Do accept wxNOT_FOUND in SetSelectedItem() as it means, according to the docs,
that the existing selection should be reset.

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