Remove chars one-by-one with wxELLIPSIZE_MIDDLE.
authorVáclav Slavík <vslavik@fastmail.fm>
Mon, 31 Jan 2011 18:23:29 +0000 (18:23 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Mon, 31 Jan 2011 18:23:29 +0000 (18:23 +0000)
commit3433de6e63a163ef8d37bc8aee84635b71868004
tree6574fdcba30f25f3ea20dd91ca34a99ed63512da
parent3999336cb9ff3ef20d707d3eea470b2609a9c7c3
Remove chars one-by-one with wxELLIPSIZE_MIDDLE.

Previously, Ellipsize() would always remove two characters at a time in
wxELLIPSIZE_MIDDLE mode. This was clearly a bug: it led to shortening
the text more than was strictly necessary.

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