diff options
-rw-r--r-- | framework/source/uielement/toolbarmanager.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/source/uielement/toolbarmanager.cxx b/framework/source/uielement/toolbarmanager.cxx index 49bb97325861..f4a599a060a9 100644 --- a/framework/source/uielement/toolbarmanager.cxx +++ b/framework/source/uielement/toolbarmanager.cxx @@ -926,7 +926,7 @@ void ToolBarManager::CreateControllers() if (( aCommandURL == aLoadURL ) && ( !m_pToolBar->IsItemVisible(nId))) bCreate = sal_False; - if ( !xController.is() && m_pToolBar && bCreate ) + if ( !xController.is() && bCreate ) { pController = CreateToolBoxController( m_xFrame, m_pToolBar, nId, aCommandURL ); if ( !pController ) |