diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2015-08-31 00:30:16 +0300 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2015-08-31 01:33:38 +0300 |
commit | c511b2795dbf47186c0f7d83fe7a4cd737d4d765 (patch) | |
tree | 5022cb3f7f24345d70fa4284c3abc5a89ea9c244 /sd | |
parent | b7d877c4c18000e4d4653a7858e5b1578a73bef5 (diff) |
sd: Don't crash when the sidebar is hidden
Change-Id: I09a5019a98b529ba11f07392906a3e0fb7bc1bac
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/slidesorter/controller/SlsSlotManager.cxx | 3 | ||||
-rw-r--r-- | sd/source/ui/table/tablefunction.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/view/ViewShellImplementation.cxx | 4 |
3 files changed, 6 insertions, 5 deletions
diff --git a/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx b/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx index a5eef4c56a55..5a32041c1e31 100644 --- a/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx +++ b/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx @@ -179,7 +179,8 @@ void SlotManager::FuTemporary (SfxRequest& rRequest) case SID_SLIDE_TRANSITIONS_PANEL: { - // Make the slide transition panel visible in the sidebar. + // First make sure that the sidebar is visible + pShell->GetViewFrame()->ShowChildWindow(SID_SIDEBAR); ::sfx2::sidebar::Sidebar::ShowPanel( OUString("SlideTransitionPanel"), pShell->GetViewFrame()->GetFrame().GetFrameInterface()); diff --git a/sd/source/ui/table/tablefunction.cxx b/sd/source/ui/table/tablefunction.cxx index 857f932b5db8..d032fd4ad067 100644 --- a/sd/source/ui/table/tablefunction.cxx +++ b/sd/source/ui/table/tablefunction.cxx @@ -206,8 +206,8 @@ void DrawViewShell::FuTable(SfxRequest& rReq) } else { - // Make the table design panel visible (expand it) in the - // sidebar. + // First make sure that the sidebar is visible + GetViewFrame()->ShowChildWindow(SID_SIDEBAR); ::sfx2::sidebar::Sidebar::ShowPanel( OUString("ImpressTableDesignPanel"), GetViewFrame()->GetFrame().GetFrameInterface()); diff --git a/sd/source/ui/view/ViewShellImplementation.cxx b/sd/source/ui/view/ViewShellImplementation.cxx index 40a668990e43..a0c190512df9 100644 --- a/sd/source/ui/view/ViewShellImplementation.cxx +++ b/sd/source/ui/view/ViewShellImplementation.cxx @@ -119,8 +119,8 @@ void ViewShell::Implementation::ProcessModifyPageSlot ( if (!pArgs || pArgs->Count() == 1 || pArgs->Count() == 2 ) { - - // Make the layout menu visible in the tool pane. + // First make sure that the sidebar is visible + mrViewShell.GetViewFrame()->ShowChildWindow(SID_SIDEBAR); sfx2::sidebar::Sidebar::ShowPanel( OUString("ImpressLayoutsPanel"), mrViewShell.GetViewFrame()->GetFrame().GetFrameInterface()); |