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

Szymon Kłos szymon.klos at collabora.com
Fri Oct 13 13:10:40 UTC 2017


 sfx2/source/notebookbar/PriorityHBox.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 65b1f087eff4abfedbbf9137210011e699be4bfa
Author: Szymon Kłos <szymon.klos at collabora.com>
Date:   Fri Oct 13 10:45:41 2017 +0200

    Notebookbar: PriorityHBox working after reload
    
    Change-Id: Iba1802f386131b37b7972a7f022f85fdcdaab6fe
    Reviewed-on: https://gerrit.libreoffice.org/43363
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>

diff --git a/sfx2/source/notebookbar/PriorityHBox.cxx b/sfx2/source/notebookbar/PriorityHBox.cxx
index be9c16062615..913ef12495fa 100644
--- a/sfx2/source/notebookbar/PriorityHBox.cxx
+++ b/sfx2/source/notebookbar/PriorityHBox.cxx
@@ -113,7 +113,8 @@ public:
 
     virtual void Resize() override
     {
-        SetSizeFromParent();
+        if (!m_bInitialized && SfxViewFrame::Current())
+            Initialize();
 
         if (!m_bInitialized)
         {


More information about the Libreoffice-commits mailing list