[Libreoffice-commits] core.git: Branch 'libreoffice-5-4' - sfx2/source

Jan-Marek Glogowski glogow at fbihome.de
Thu Oct 19 08:47:28 UTC 2017


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

New commits:
commit 26074f8ffacd817825a6e61d39dc9e7d27b1f3c2
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>
    (cherry picked from commit ce2e94a98f5fc85bef7623a0227b3a95d8093288)
    Reviewed-on: https://gerrit.libreoffice.org/43481
    Reviewed-by: Katarina Behrens <Katarina.Behrens at cib.de>

diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx
index 9b6eab64dd97..66850a562021 100644
--- a/sfx2/source/sidebar/SidebarController.cxx
+++ b/sfx2/source/sidebar/SidebarController.cxx
@@ -619,6 +619,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