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

Jim Raykowski (via logerrit) logerrit at kemper.freedesktop.org
Wed Dec 11 09:38:18 UTC 2019


 vcl/source/window/taskpanelist.cxx |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

New commits:
commit 0ab044a4798d9968c303e5616f4a307cab0fd62d
Author:     Jim Raykowski <raykowj at gmail..com>
AuthorDate: Sun Nov 24 20:01:43 2019 -0900
Commit:     Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
CommitDate: Wed Dec 11 10:37:08 2019 +0100

    tdf#105518 F6: Skip infobar when it has no children
    
    Change-Id: Id5375d9acfd20844a56da20fcf08c709423f75e0
    Reviewed-on: https://gerrit.libreoffice.org/83636
    Tested-by: Jenkins
    Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>

diff --git a/vcl/source/window/taskpanelist.cxx b/vcl/source/window/taskpanelist.cxx
index c7af916d16b0..307bb4d29a39 100644
--- a/vcl/source/window/taskpanelist.cxx
+++ b/vcl/source/window/taskpanelist.cxx
@@ -275,7 +275,12 @@ vcl::Window* TaskPaneList::FindNextFloat( vcl::Window *pWindow, bool bForward )
             break; // do not wrap, send focus back to document at end of list
         /* #i83908# do not use the menubar if it is native and invisible
         */
-        if( (*p)->IsReallyVisible() && !(*p)->ImplIsSplitter() &&
+
+        bool bSkip = false; // used to skip infobar when it has no children
+        if( (*p)->GetType() == WindowType::WINDOW && (*p)->GetChildCount() == 0 )
+            bSkip = true;
+
+        if( !bSkip && (*p)->IsReallyVisible() && !(*p)->ImplIsSplitter() &&
             ( (*p)->GetType() != WindowType::MENUBARWINDOW || static_cast<MenuBarWindow*>(p->get())->CanGetFocus() ) )
         {
             pWindow = (*p).get();


More information about the Libreoffice-commits mailing list