[Libreoffice-commits] core.git: sfx2/source

Jan-Marek Glogowski glogow at fbihome.de
Wed Oct 18 08:06:24 UTC 2017


 sfx2/source/sidebar/SidebarController.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit ce2e94a98f5fc85bef7623a0227b3a95d8093288
Author: Jan-Marek Glogowski <glogow at fbihome.de>
Date:   Tue Oct 17 19:52:58 2017 +0200

    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 at libreoffice.org>
    Reviewed-by: Yousuf Philips <philipz85 at hotmail.com>
    Tested-by: Yousuf Philips <philipz85 at hotmail.com>
    Reviewed-by: Jan-Marek Glogowski <glogow at fbihome.de>

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


More information about the Libreoffice-commits mailing list