summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Le Grand <Armin.Le.Grand@cib.de>2018-06-16 18:08:44 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2018-06-17 00:00:23 +0200
commitbf1f49c837264c8f59197b9487d40e32821526c3 (patch)
tree7369ca685a0c115b205b51d68250522f3a0c4974
parent596820a5a3d9a12196b6bbcbfcb6d16ecd437962 (diff)
Fix crash on deactivating Chart after playing around
Change-Id: I55fab9213d3571e9457c1a0e0d68574ab4760d1e Reviewed-on: https://gerrit.libreoffice.org/55931 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
-rw-r--r--sfx2/source/sidebar/SidebarController.cxx12
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;
}