diff options
Diffstat (limited to 'framework/source/classes/menumanager.cxx')
-rw-r--r-- | framework/source/classes/menumanager.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/source/classes/menumanager.cxx b/framework/source/classes/menumanager.cxx index 4ec18d46d36e..85d6798c3ef9 100644 --- a/framework/source/classes/menumanager.cxx +++ b/framework/source/classes/menumanager.cxx @@ -143,8 +143,8 @@ MenuManager::MenuManager( if ( pPopupMenu ) { AddMenu(pPopupMenu,aItemCommand,nItemId,bDeleteChildren,bDeleteChildren); - if (! (( aItemCommand.getLength() > nAddonsURLPrefixLength ) && - ( aItemCommand.indexOf( ADDONSPOPUPMENU_URL_PREFIX ) == 0 )) ) + if (! ( aItemCommand.getLength() > nAddonsURLPrefixLength && + aItemCommand.startsWith( ADDONSPOPUPMENU_URL_PREFIX ) ) ) { // Create addon popup menu if there exist elements and this is the tools popup menu |