diff options
Diffstat (limited to 'svx/source/tbxctrls/lboxctrl.cxx')
-rw-r--r-- | svx/source/tbxctrls/lboxctrl.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/tbxctrls/lboxctrl.cxx b/svx/source/tbxctrls/lboxctrl.cxx index a40580c06fe9..c617a7c8b08b 100644 --- a/svx/source/tbxctrls/lboxctrl.cxx +++ b/svx/source/tbxctrls/lboxctrl.cxx @@ -224,7 +224,7 @@ SvxUndoRedoControl::SvxUndoRedoControl( sal_uInt16 nSlotId, sal_uInt16 nId, Tool { rTbx.SetItemBits( nId, ToolBoxItemBits::DROPDOWN | rTbx.GetItemBits( nId ) ); rTbx.Invalidate(); - aDefaultText = MnemonicGenerator::EraseAllMnemonicChars( rTbx.GetItemText( nId ) ); + aDefaultTooltip = rTbx.GetQuickHelpText( nId ); } SvxUndoRedoControl::~SvxUndoRedoControl() @@ -239,13 +239,13 @@ void SvxUndoRedoControl::StateChanged( if ( eState == SfxItemState::DISABLED ) { ToolBox& rBox = GetToolBox(); - rBox.SetQuickHelpText( GetId(), aDefaultText ); + rBox.SetQuickHelpText( GetId(), aDefaultTooltip ); } else if ( pState && dynamic_cast<const SfxStringItem*>( pState) != nullptr ) { const SfxStringItem& rItem = *static_cast<const SfxStringItem *>(pState); ToolBox& rBox = GetToolBox(); - OUString aQuickHelpText = MnemonicGenerator::EraseAllMnemonicChars( rItem.GetValue() ); + OUString aQuickHelpText = rItem.GetValue(); rBox.SetQuickHelpText( GetId(), aQuickHelpText ); } SvxListBoxControl::StateChanged( nSID, eState, pState ); |