From 7f78e97021a9e7611ee95b71b3340cdc092cfbb5 Mon Sep 17 00:00:00 2001 From: New Pagodi Date: Fri, 26 Jun 2020 14:11:39 -0500 Subject: [PATCH] Use ellipsis char not 3 periods to shorten label --- src/stc/PlatWX.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/stc/PlatWX.cpp b/src/stc/PlatWX.cpp index 34f6356279..b8377f205c 100644 --- a/src/stc/PlatWX.cpp +++ b/src/stc/PlatWX.cpp @@ -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);