Avoid useless iteration on all pages in wxBookCtrlBase::DoGetBestSize().
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 27 Sep 2012 12:46:53 +0000 (12:46 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 27 Sep 2012 12:46:53 +0000 (12:46 +0000)
commite67e249752fb5814557fa4bc49c1bf1457263229
treefa1ce8fdbac19756b226f9bd2e8271bac927d76b
parent4fcad4fb6de3ff496673fd0fcc5411d8df1d0b3e
Avoid useless iteration on all pages in wxBookCtrlBase::DoGetBestSize().

If m_fitToCurrentPage is true, there is no need to iterate over all the pages
computing their max best size only in order to overwrite it with the best size
of the current page later.

This doesn't result in any changes in the behaviour, just avoids useless best
size computations.

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