[Libreoffice-commits] core.git: vcl/osx

Tor Lillqvist tml at collabora.com
Tue Mar 13 12:37:23 UTC 2018


 vcl/osx/salmenu.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 3ea981761038cbc23303a51211289f697916c7f2
Author: Tor Lillqvist <tml at collabora.com>
Date:   Tue Mar 13 09:52:55 2018 +0200

    Use a Unicode ellipsis character when a menu item ends with three dots
    
    Change-Id: I5ee724ef4b24f880e8bbc3ce0147331818b4f479
    Reviewed-on: https://gerrit.libreoffice.org/51193
    Reviewed-by: Tor Lillqvist <tml at collabora.com>
    Tested-by: Tor Lillqvist <tml at collabora.com>

diff --git a/vcl/osx/salmenu.cxx b/vcl/osx/salmenu.cxx
index 96e5ef04e63d..922a6035d37b 100644
--- a/vcl/osx/salmenu.cxx
+++ b/vcl/osx/salmenu.cxx
@@ -653,6 +653,9 @@ void AquaSalMenu::SetItemText( unsigned /*i_nPos*/, SalMenuItem* i_pSalMenuItem,
         }
     }
 
+    if (aText.endsWith("..."))
+        aText = aText.copy(0, aText.getLength()-3) + OUString(sal_Unicode(0x2026));
+
     NSString* pString = CreateNSString( aText );
     if (pString)
     {


More information about the Libreoffice-commits mailing list