]> git.saurik.com Git - wxWidgets.git/commit
Make wxOwnerDrawnComboBox::DoGetBestSize() twice as fast.
authorVáclav Slavík <vslavik@fastmail.fm>
Wed, 7 Aug 2013 17:33:42 +0000 (17:33 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Wed, 7 Aug 2013 17:33:42 +0000 (17:33 +0000)
commit07fb285c521527e383f2d1090f7f41f561bcd8fd
tree80298e609ae94db2673f50d3d4247e4fc6a06a6e
parentf592a93992adce7d38b163beadd10204b495d94c
Make wxOwnerDrawnComboBox::DoGetBestSize() twice as fast.

Don't call the very expensive wxComboCtrlBase::DoGetBestSize() method
when not needed - it calls wxComboCtrlBase::DoGetSizeFromTextSize(),
which is very expensive.

Also fix the code so that it doesn't apply GetSizeFromTextSize() twice
(once in the base class' DoGetBestSize(), once here).

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