[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.3' - sfx2/source

Jan-Marek Glogowski glogow at fbihome.de
Wed Dec 20 11:35:34 UTC 2017


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

New commits:
commit 6b170b28f0cd2be86268e103efff8dcaaa470e96
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)

diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx
index 58117bd336db..0195c496fccc 100644
--- a/sfx2/source/sidebar/SidebarController.cxx
+++ b/sfx2/source/sidebar/SidebarController.cxx
@@ -616,6 +616,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