]> git.saurik.com Git - wxWidgets.git/commit
Keep the item being updated selected in wxMSW wxChoice::SetString().
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 16 Dec 2011 19:47:58 +0000 (19:47 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 16 Dec 2011 19:47:58 +0000 (19:47 +0000)
commitb281a9230574b6ca74471bdb27ab14a6dd9c643d
tree0a829126c4932842a247f3cb64b5b97b26e2e8a2
parent5b130f274edba5827fa68523def9e631824be5b8
Keep the item being updated selected in wxMSW wxChoice::SetString().

Changing the text of the selected wxChoice (or wxComboBox, as it derives from
it in wxMSW) item made it unselected. Fix this by explicitly restoring the
selection to the item if needed.

Closes #13769.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70018 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/msw/choice.cpp
tests/controls/itemcontainertest.cpp