Calculate ellipsized width exactly.
authorVáclav Slavík <vslavik@fastmail.fm>
Wed, 9 Feb 2011 19:52:22 +0000 (19:52 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Wed, 9 Feb 2011 19:52:22 +0000 (19:52 +0000)
commit38ddd614f2329793d7b5a75c4c2fa1e3b5f0fb76
treeb4d00e56de9193e97d6516964ca23eec56186787
parent508fc76d0c40e505ec2be7a2d6d985a39383acb1
Calculate ellipsized width exactly.

Width calculation using partial extents is just an inaccurate
estimate: partial extents have sub-pixel precision and are rounded
by GetPartialTextExtents(). Use partial extents to
estimate string width and only verify it with GetTextExtent()
when it looks good.

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