diff options
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/sidebar/SidebarController.cxx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx index 5763fe49db02..4f2b3e900d6a 100644 --- a/sfx2/source/sidebar/SidebarController.cxx +++ b/sfx2/source/sidebar/SidebarController.cxx @@ -1344,9 +1344,15 @@ tools::Rectangle SidebarController::GetDeckDragArea() const { tools::Rectangle aRect; - VclPtr<DeckTitleBar> pTitleBar = mpCurrentDeck->GetTitleBar(); - if ( pTitleBar) - aRect = pTitleBar->GetDragArea(); + if(mpCurrentDeck) + { + VclPtr<DeckTitleBar> pTitleBar(mpCurrentDeck->GetTitleBar()); + + if(pTitleBar) + { + aRect = pTitleBar->GetDragArea(); + } + } return aRect; } |