[Libreoffice-commits] core.git: vcl/source
Caolán McNamara
caolanm at redhat.com
Mon Sep 12 16:09:43 UTC 2016
vcl/source/window/taskpanelist.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 830ac71eca425caf04764076e3064b5f1ad05c52
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Sep 12 17:08:28 2016 +0100
Resolves: tdf#101879 explicitly put menubars at the start of task lists
Change-Id: Ia6a36b08f84960b01472833504cd65bfbad473eb
diff --git a/vcl/source/window/taskpanelist.cxx b/vcl/source/window/taskpanelist.cxx
index 4e995a5..21b94d2 100644
--- a/vcl/source/window/taskpanelist.cxx
+++ b/vcl/source/window/taskpanelist.cxx
@@ -96,7 +96,7 @@ void TaskPaneList::AddWindow( vcl::Window *pWindow )
{
if( pWindow )
{
- auto insertionPos = mTaskPanes.end();
+ auto insertionPos = dynamic_cast<MenuBarWindow*>(pWindow) ? mTaskPanes.begin() : mTaskPanes.end();
for ( auto p = mTaskPanes.begin(); p != mTaskPanes.end(); ++p )
{
if ( *p == pWindow )
More information about the Libreoffice-commits
mailing list