diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2017-10-17 19:52:58 +0200 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2017-10-18 10:05:58 +0200 |
commit | ce2e94a98f5fc85bef7623a0227b3a95d8093288 (patch) | |
tree | 5b8b3126d1672766b5144483fe11b3d6e44f1d35 /sfx2 | |
parent | a05bb7bf718caf2405c5bfaa4a90f6468f2d66ff (diff) |
tdf#99537 set expand for re-used sidebar panels
When re-using a panel, reset the expand state from the stored
state in the PanelContexDescriptor.
Change-Id: I00851982bbd36cacdc57459bb6e5be9fcc719e81
Reviewed-on: https://gerrit.libreoffice.org/43466
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
Tested-by: Yousuf Philips <philipz85@hotmail.com>
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/sidebar/SidebarController.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx index caa2741ae324..e5cc4296b74a 100644 --- a/sfx2/source/sidebar/SidebarController.cxx +++ b/sfx2/source/sidebar/SidebarController.cxx @@ -617,6 +617,7 @@ void SidebarController::CreatePanels(const ::rtl::OUString& rDeckId, const Conte if (pPanel != nullptr) { aNewPanels[nWriteIndex] = pPanel; + pPanel->SetExpanded( rPanelContexDescriptor.mbIsInitiallyVisible ); ++nWriteIndex; } else |