Use ellipsis char not 3 periods to shorten label

This commit is contained in:
New Pagodi
2020-06-26 14:11:39 -05:00
parent 71fdad5f6d
commit 7f78e97021

View File

@@ -3181,7 +3181,12 @@ public:
for ( int i = label.length(); curWidth > rect.GetWidth() && i; --i )
{
ellipsizedLabel = label.Left(i);
ellipsizedLabel << "...";
#if wxUSE_UNICODE
// Add the "Horizontal Ellipsis" character (U+2026).
ellipsizedLabel << wxUniChar(0x2026);
#else
ellipsizedLabel << "...";
#endif
buffer = wx2stc(ellipsizedLabel);
ellipsizedLen = wx2stclen(ellipsizedLabel, buffer);