summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfx2/source/notebookbar/SfxNotebookBar.cxx8
1 files changed, 0 insertions, 8 deletions
diff --git a/sfx2/source/notebookbar/SfxNotebookBar.cxx b/sfx2/source/notebookbar/SfxNotebookBar.cxx
index dd6781ae66c3..e991ac9e6877 100644
--- a/sfx2/source/notebookbar/SfxNotebookBar.cxx
+++ b/sfx2/source/notebookbar/SfxNotebookBar.cxx
@@ -479,8 +479,6 @@ void SfxNotebookBar::ShowMenubar(bool bShow)
if (xLayoutManager.is())
{
- xLayoutManager->lock();
-
if (xLayoutManager->getElement(MENUBAR_STR).is())
{
if (xLayoutManager->isElementVisible(MENUBAR_STR) && !bShow)
@@ -488,8 +486,6 @@ void SfxNotebookBar::ShowMenubar(bool bShow)
else if(!xLayoutManager->isElementVisible(MENUBAR_STR) && bShow)
xLayoutManager->showElement(MENUBAR_STR);
}
-
- xLayoutManager->unlock();
}
}
}
@@ -512,8 +508,6 @@ void SfxNotebookBar::ShowMenubar(SfxViewFrame const * pViewFrame, bool bShow)
const Reference<frame::XLayoutManager>& xLayoutManager = lcl_getLayoutManager(xFrame);
if (xLayoutManager.is())
{
- xLayoutManager->lock();
-
if (xLayoutManager->getElement(MENUBAR_STR).is())
{
if (xLayoutManager->isElementVisible(MENUBAR_STR) && !bShow)
@@ -521,8 +515,6 @@ void SfxNotebookBar::ShowMenubar(SfxViewFrame const * pViewFrame, bool bShow)
else if (!xLayoutManager->isElementVisible(MENUBAR_STR) && bShow)
xLayoutManager->showElement(MENUBAR_STR);
}
-
- xLayoutManager->unlock();
}
}
m_bLock = false;