From 6105812d67ce5369ff3a1b9690f2bc333a17e44d Mon Sep 17 00:00:00 2001 From: Samuel Mehrbrodt Date: Fri, 13 Nov 2015 06:42:09 +0100 Subject: [PATCH] Toolbar: Use 'Name', not 'Label' property for Toolbar items Name is a stripped-down version of Label (doesn't contain dots etc). Inadvertently changed in 9c2f197e8e945f584e718e889938c06fbf644897 Thanks to Maxim for pointing this out. Change-Id: I7df5752af6c398cc216b7773e4506d401232c216 --- framework/source/uielement/toolbarmanager.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/source/uielement/toolbarmanager.cxx b/framework/source/uielement/toolbarmanager.cxx index 8c5bb68e03fa..ecc370886d9b 100644 --- a/framework/source/uielement/toolbarmanager.cxx +++ b/framework/source/uielement/toolbarmanager.cxx @@ -1272,7 +1272,7 @@ void ToolBarManager::FillToolbar( const Reference< XIndexAccess >& rItemContaine if (( nType == css::ui::ItemType::DEFAULT ) && !aCommandURL.isEmpty() ) { - OUString aString( RetrieveFromCommand( "Label", aCommandURL )); + OUString aString( RetrieveFromCommand( "Name", aCommandURL )); OUString aTooltipFromCommand( RetrieveFromCommand( "TooltipLabel", aCommandURL )); ToolBoxItemBits nItemBits = ConvertStyleToToolboxItemBits( nStyle );