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
This commit is contained in:
Samuel Mehrbrodt 2015-11-13 06:42:09 +01:00
parent 41379970e8
commit 6105812d67

View File

@ -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 );