summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-05-23 14:03:37 +0100
committerAdolfo Jayme Barrientos <fitojb@ubuntu.com>2019-06-03 06:04:15 +0200
commita36236e82c99839d327094b182a167ac53c4ea66 (patch)
tree22a9397f7c6e7434e5c3005ace3e0d075519c371 /sd
parente5a4746378202f8b599de11632b7c8772b735ea2 (diff)
Resolves: tdf#125447 mnemonic appearing in tooltip
Change-Id: I570af8f19468730aad714425492f69d05c0a0cf3 Reviewed-on: https://gerrit.libreoffice.org/72853 Tested-by: Jenkins Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/view/viewshe3.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sd/source/ui/view/viewshe3.cxx b/sd/source/ui/view/viewshe3.cxx
index 73edd5dc7bc8..36e77c91c7bb 100644
--- a/sd/source/ui/view/viewshe3.cxx
+++ b/sd/source/ui/view/viewshe3.cxx
@@ -78,6 +78,7 @@
#include <svl/aeitem.hxx>
#include <basic/sbstar.hxx>
#include <xmloff/autolayout.hxx>
+#include <vcl/mnemonic.hxx>
using namespace ::com::sun::star;
@@ -168,7 +169,7 @@ void ViewShell::GetMenuState( SfxItemSet &rSet )
{
// Set the necessary string like in
// sfx2/source/view/viewfrm.cxx ver 1.23 ln 1081 ff.
- OUString aTmp(SvtResId(STR_REDO));
+ OUString aTmp(MnemonicGenerator::EraseAllMnemonicChars(SvtResId(STR_REDO)));
aTmp += pUndoManager->GetRedoActionComment();
rSet.Put(SfxStringItem(SID_REDO, aTmp));
}