]> git.saurik.com Git - wxWidgets.git/commit
Reset the checked state of the first radio item in wxAuiToolBar too.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 14 May 2011 14:18:09 +0000 (14:18 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 14 May 2011 14:18:09 +0000 (14:18 +0000)
commit587151f730be88de8fcba82004c2bb93f8362342
tree616e1b70f42e06ca977adc953910cab87a5dd888
parenta4e5e0b90cd1213e9281843560b6979f37e20756
Reset the checked state of the first radio item in wxAuiToolBar too.

Fix the condition of the loop in wxAuiToolBar::ToggleTool() to also uncheck
the item with index 0 that was always excluded before because of "i > 0" check
in the loop.

Also exclude the item being turned on itself from the loops, it's useless to
reset its checked state only to turn it on again below.

Closes #11110.

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