summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--framework/source/uielement/menubarmanager.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/framework/source/uielement/menubarmanager.cxx b/framework/source/uielement/menubarmanager.cxx
index daa0a455a40b..0c2be0aed5fc 100644
--- a/framework/source/uielement/menubarmanager.cxx
+++ b/framework/source/uielement/menubarmanager.cxx
@@ -1176,11 +1176,6 @@ void MenuBarManager::FillMenuManager( Menu* pMenu, const Reference< XFrame >& rF
{
sal_uInt16 nItemId = FillItemCommand(aItemCommand,pMenu, i );
- // Command can be just an alias to another command.
- OUString aRealCommand = vcl::CommandInfoProvider::Instance().GetRealCommandForCommand( aItemCommand, m_xFrame );
- if ( !aRealCommand.isEmpty() )
- aItemCommand = aRealCommand;
-
// Set module identifier when provided from outside
if ( !rModuleIdentifier.isEmpty() )
{
@@ -1195,6 +1190,11 @@ void MenuBarManager::FillMenuManager( Menu* pMenu, const Reference< XFrame >& rF
pMenu->SetItemText( nItemId, RetrieveLabelFromCommand( aItemCommand ));
}
+ // Command can be just an alias to another command.
+ OUString aRealCommand = vcl::CommandInfoProvider::Instance().GetRealCommandForCommand( aItemCommand, m_xFrame );
+ if ( !aRealCommand.isEmpty() )
+ aItemCommand = aRealCommand;
+
Reference< XDispatch > xDispatch;
Reference< XStatusListener > xStatusListener;
PopupMenu* pPopup = pMenu->GetPopupMenu( nItemId );