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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Aug 29 14:40:42 UTC 2018


 sfx2/source/sidebar/FocusManager.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 1eeda4a32f33b9f37f093c6e9905c3ce9523b81a
Author:     Jim Raykowski <raykowj at gmail.com>
AuthorDate: Mon Aug 27 14:12:00 2018 -0800
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed Aug 29 16:40:12 2018 +0200

    tdf#119554 Expand collapsed panel when panel content gets focus
    
    Change-Id: I1af7a9e93affc5c6e5e3ba90ba335e59a0900d20
    Reviewed-on: https://gerrit.libreoffice.org/59737
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sfx2/source/sidebar/FocusManager.cxx b/sfx2/source/sidebar/FocusManager.cxx
index 244291240e7b..6218efd88679 100644
--- a/sfx2/source/sidebar/FocusManager.cxx
+++ b/sfx2/source/sidebar/FocusManager.cxx
@@ -265,6 +265,9 @@ void FocusManager::FocusPanel (
 
 void FocusManager::FocusPanelContent (const sal_Int32 nPanelIndex)
 {
+    if (!maPanels[nPanelIndex]->IsExpanded())
+        maPanels[nPanelIndex]->SetExpanded(true);
+
     VclPtr<vcl::Window> pWindow = VCLUnoHelper::GetWindow(maPanels[nPanelIndex]->GetElementWindow());
     if (pWindow)
     {


More information about the Libreoffice-commits mailing list