diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2017-08-20 15:38:55 +0200 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2017-08-20 21:18:57 +0200 |
commit | 2d29dae57ed151be7244aa0a1e2317b30a4c928d (patch) | |
tree | 7eb7179fc37f5549fd63253ed8d2c0f95ac718e6 /sfx2 | |
parent | aff5951e7b4fa549882f4d4c4cfda99f3966a9d9 (diff) |
tdf#107129: correct showing order
Change-Id: I2e72b8e0d3ff8ef9de16d634d85d43ef2da9ca75
Reviewed-on: https://gerrit.libreoffice.org/41361
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/notebookbar/PriorityHBox.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sfx2/source/notebookbar/PriorityHBox.cxx b/sfx2/source/notebookbar/PriorityHBox.cxx index fde027bb3364..df854701370b 100644 --- a/sfx2/source/notebookbar/PriorityHBox.cxx +++ b/sfx2/source/notebookbar/PriorityHBox.cxx @@ -107,10 +107,11 @@ public: pChild++; } + auto pChildR = m_aSortedChilds.rbegin(); // Show higher priority controls if we already have enough space - while (pChild != m_aSortedChilds.end()) + while (pChildR != m_aSortedChilds.rend()) { - DropdownBox* pBox = static_cast<DropdownBox*>(*pChild); + DropdownBox* pBox = static_cast<DropdownBox*>(*pChildR); nCurrentWidth -= pBox->GetOutputWidthPixel() + get_spacing(); pBox->ShowContent(); @@ -122,7 +123,7 @@ public: break; } - pChild++; + pChildR++; } VclHBox::Resize(); |