vcl/osx/salmenu.cxx | 3 +++ 1 file changed, 3 insertions(+) New commits: commit 3ea981761038cbc23303a51211289f697916c7f2 Author: Tor Lillqvist <t...@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 <t...@collabora.com> Tested-by: Tor Lillqvist <t...@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) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits