]> git.saurik.com Git - wxWidgets.git/commit
Don't hardcode the number of toolbar tools in the toolbar sample.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 28 Nov 2011 12:47:26 +0000 (12:47 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 28 Nov 2011 12:47:26 +0000 (12:47 +0000)
commit09c0ebcf968686864e2f14e0873764d77ff94a40
tree092d042cb7b736fb7db869a98d3ad14b6273bc99
parentc66c8042ad988f4b848fd8a967c1c1c5bc37610f
Don't hardcode the number of toolbar tools in the toolbar sample.

Use GetToolsCount() instead of the hardcoded 10 (which can be wrong if any
tools were added or removed).

See #13673.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69855 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
samples/toolbar/toolbar.cpp