summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--framework/source/layoutmanager/layoutmanager.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/framework/source/layoutmanager/layoutmanager.cxx b/framework/source/layoutmanager/layoutmanager.cxx
index fe10f2e52469..1c15c9faa55b 100644
--- a/framework/source/layoutmanager/layoutmanager.cxx
+++ b/framework/source/layoutmanager/layoutmanager.cxx
@@ -784,11 +784,6 @@ void LayoutManager::implts_updateUIElementsVisibleState( bool bSetVisible )
if ( bSetVisible )
{
pSysWindow->SetMenuBar(pMenuBar);
- if (getenv("LO_USE_NOTEBOOKBAR"))
- {
- pSysWindow->CreateNotebookBar("vcl/ui/notebookbar.ui", m_xFrame);
- pSysWindow->SetMenuBarMode(MenuBarMode::Hide);
- }
}
else
pSysWindow->SetMenuBar( nullptr );
@@ -1466,7 +1461,7 @@ throw (RuntimeException, std::exception)
{
// #i38743# don't create a menubar if frame isn't top
if ( !bInPlaceMenu && !m_xMenuBar.is() && implts_isFrameOrWindowTop( xFrame ))
- {
+ {
m_xMenuBar = implts_createElement( aName );
if ( m_xMenuBar.is() )
{
@@ -1508,6 +1503,11 @@ throw (RuntimeException, std::exception)
}
}
}
+ if (getenv("LO_USE_NOTEBOOKBAR"))
+ {
+ pSysWindow->CreateNotebookBar("vcl/ui/notebookbar.ui", m_xFrame);
+ pSysWindow->SetMenuBarMode(MenuBarMode::Hide);
+ }
}
}
}