Update wxNotebook selection when user changes the page in wxOSX.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 14 Jan 2012 17:57:08 +0000 (17:57 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 14 Jan 2012 17:57:08 +0000 (17:57 +0000)
commit821073e3869477d4d3b365f2bd30a2b264ae486a
tree2a08400e9c07e55f0d2a39ac6290bddc5e2e5446
parent50703c1a7233f3048ac4fbbdb222dd9091c7330e
Update wxNotebook selection when user changes the page in wxOSX.

wxNotebook::m_selection was only updated if the selected page was changed
programmatically but not if it was done by the user. Do update it in this case
as well, it fixes generation of the events which was broken before because of
comparison of the new selection with the incorrect current selection value in
m_selection.

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