diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-09-12 17:08:28 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-09-12 17:09:06 +0100 |
commit | 830ac71eca425caf04764076e3064b5f1ad05c52 (patch) | |
tree | 8ab89f60d5d5b1dc308a868c230b15a202745c51 /vcl | |
parent | 56badc051ceee678e978add00d36c8e4d2d37ddb (diff) |
Resolves: tdf#101879 explicitly put menubars at the start of task lists
Change-Id: Ia6a36b08f84960b01472833504cd65bfbad473eb
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/taskpanelist.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/taskpanelist.cxx b/vcl/source/window/taskpanelist.cxx index 4e995a5b42dc..21b94d2a261d 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 ) |