]> git.saurik.com Git - wxWidgets.git/commit
Fix bug in ribbon bar label size calculation.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 15 Aug 2012 23:34:40 +0000 (23:34 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 15 Aug 2012 23:34:40 +0000 (23:34 +0000)
commit083ec26fb723d360851f2842ffb5fb3c65a8797b
treedb5bb193f1b7e93907fbe12c7fdfad261943213a
parent70f86dedfd91afeb6bd1f941802063941431d13b
Fix bug in ribbon bar label size calculation.

Due to an off by 1 error in wxString::Mid() call, the size computed was too
small and hence the label could have been not displayed at all.

Fix this and also replace Mid(0, n) with a more clear Left(n) call.

Closes #14566.

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