diff options
author | Tor Lillqvist <tml@collabora.com> | 2018-03-13 09:52:55 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2018-03-13 13:36:58 +0100 |
commit | 3ea981761038cbc23303a51211289f697916c7f2 (patch) | |
tree | 8db8b621aad65c49e41b661da4f8833d20525b51 | |
parent | d704ce2504a4cac1c95c2a7bb458c6c5d130a250 (diff) |
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@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
-rw-r--r-- | vcl/osx/salmenu.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
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) { |