[Libreoffice-commits] core.git: sfx2/source
Caolán McNamara
caolanm at redhat.com
Fri Dec 9 11:14:46 UTC 2016
sfx2/source/sidebar/Panel.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit f5edbb4158e86bfea7267115395b64e60fd61dc7
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Dec 9 11:09:21 2016 +0000
Related: rhbz#1397939 crash with null pSidebarController
Change-Id: I7627ff30564b2de61669c71dafd15e7b1778b5c6
diff --git a/sfx2/source/sidebar/Panel.cxx b/sfx2/source/sidebar/Panel.cxx
index 8b2bb7b..b87d0dd 100644
--- a/sfx2/source/sidebar/Panel.cxx
+++ b/sfx2/source/sidebar/Panel.cxx
@@ -115,14 +115,14 @@ void Panel::SetUIElement (const Reference<ui::XUIElement>& rxElement)
void Panel::SetExpanded (const bool bIsExpanded)
{
- SidebarController* pSidebarController= SidebarController::GetSidebarControllerForFrame(mxFrame);
+ SidebarController* pSidebarController = SidebarController::GetSidebarControllerForFrame(mxFrame);
if (mbIsExpanded != bIsExpanded)
{
mbIsExpanded = bIsExpanded;
maDeckLayoutTrigger();
- if (maContextAccess)
+ if (maContextAccess && pSidebarController)
{
pSidebarController->GetResourceManager()->StorePanelExpansionState(
msPanelId,
More information about the Libreoffice-commits
mailing list