[Libreoffice-commits] core.git: vcl/osx
Douglas Mencken
dougmencken at gmail.com
Tue Oct 4 07:35:59 UTC 2016
vcl/osx/salmenu.cxx | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
New commits:
commit ae3ec79354f7b4967e736c6a4cd7c08fc52e2b7d
Author: Douglas Mencken <dougmencken at gmail.com>
Date: Mon Oct 3 11:03:06 2016 -0400
there’s no need to peel tildæ for separator
Change-Id: Id53e5c704759d831bedd42ca9a8cd9f393ecdd0c
Reviewed-on: https://gerrit.libreoffice.org/29492
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/vcl/osx/salmenu.cxx b/vcl/osx/salmenu.cxx
index 70a438a..7c9b7db 100644
--- a/vcl/osx/salmenu.cxx
+++ b/vcl/osx/salmenu.cxx
@@ -866,9 +866,6 @@ AquaSalMenuItem::AquaSalMenuItem( const SalItemParams* pItemData ) :
mpSubMenu( nullptr ),
mpMenuItem( nil )
{
- // Delete mnemonics
- OUString aText = pItemData->aText.replaceAll("~", "");
-
if (pItemData->eType == MenuItemType::SEPARATOR)
{
mpMenuItem = [NSMenuItem separatorItem];
@@ -880,7 +877,9 @@ AquaSalMenuItem::AquaSalMenuItem( const SalItemParams* pItemData ) :
{
mpMenuItem = [[SalNSMenuItem alloc] initWithMenuItem: this];
[mpMenuItem setEnabled: YES];
- NSString* pString = CreateNSString( aText );
+
+ // peel mnemonics because on mac there are no such things for menu items
+ NSString* pString = CreateNSString( pItemData->aText.replaceAll( "~", "" ) );
if (pString)
{
[mpMenuItem setTitle: pString];
More information about the Libreoffice-commits
mailing list