Don't eliminate text completely in Ellipsize().
authorVáclav Slavík <vslavik@fastmail.fm>
Wed, 9 Feb 2011 19:52:34 +0000 (19:52 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Wed, 9 Feb 2011 19:52:34 +0000 (19:52 +0000)
commit4b52555d714a166af0b2f486cdf67e5f373f86d1
tree57020eb549d15fc04ced61442d62dad9a57e3d63
parent38ddd614f2329793d7b5a75c4c2fa1e3b5f0fb76
Don't eliminate text completely in Ellipsize().

If the shortened text is so short there's nothing left of the original,
show one character and "...". This is standard behaviour on both
Windows and OS X, in addition to making lot of sense.

Fixes #11360.

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