diff options
Diffstat (limited to 'sfx2/source/sidebar/SidebarController.cxx')
-rw-r--r-- | sfx2/source/sidebar/SidebarController.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx index 435ea63150d3..8a0e851cff66 100644 --- a/sfx2/source/sidebar/SidebarController.cxx +++ b/sfx2/source/sidebar/SidebarController.cxx @@ -734,7 +734,7 @@ void SidebarController::CreatePanels(const OUString& rDeckId, const Context& rCo { pTitleBar->SetMoreOptionsCommand( rPanelContexDescriptor.msMenuCommand, - mxFrame, xController); + mxFrame); } ++nWriteIndex; } @@ -1575,17 +1575,15 @@ void SidebarController::FadeIn() tools::Rectangle SidebarController::GetDeckDragArea() const { tools::Rectangle aRect; - - if(mpCurrentDeck) + if (mpCurrentDeck) { VclPtr<DeckTitleBar> pTitleBar(mpCurrentDeck->GetTitleBar()); - if(pTitleBar) + if (pTitleBar) { - aRect = DeckTitleBar::GetDragArea(); + aRect = pTitleBar->GetDragArea(); } } - return aRect; } |