summaryrefslogtreecommitdiff
path: root/vcl/osx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/osx')
-rw-r--r--vcl/osx/salmenu.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/osx/salmenu.cxx b/vcl/osx/salmenu.cxx
index 922a6035d37b..9122f54c456c 100644
--- a/vcl/osx/salmenu.cxx
+++ b/vcl/osx/salmenu.cxx
@@ -653,8 +653,8 @@ void AquaSalMenu::SetItemText( unsigned /*i_nPos*/, SalMenuItem* i_pSalMenuItem,
}
}
- if (aText.endsWith("..."))
- aText = aText.copy(0, aText.getLength()-3) + OUString(sal_Unicode(0x2026));
+ if (aText.endsWith("...", &aText))
+ aText += u"\u2026";
NSString* pString = CreateNSString( aText );
if (pString)