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/source/ui/table | |
parent | b7d877c4c18000e4d4653a7858e5b1578a73bef5 (diff) |
sd: Don't crash when the sidebar is hidden
Change-Id: I09a5019a98b529ba11f07392906a3e0fb7bc1bac
Diffstat (limited to 'sd/source/ui/table')
-rw-r--r-- | sd/source/ui/table/tablefunction.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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()); |