[Libreoffice-commits] core.git: sfx2/source
Szymon Kłos
szymon.klos at collabora.com
Sun Aug 20 19:20:56 UTC 2017
sfx2/source/notebookbar/PriorityHBox.cxx | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
New commits:
commit 2d29dae57ed151be7244aa0a1e2317b30a4c928d
Author: Szymon Kłos <szymon.klos at collabora.com>
Date: Sun Aug 20 15:38:55 2017 +0200
tdf#107129: correct showing order
Change-Id: I2e72b8e0d3ff8ef9de16d634d85d43ef2da9ca75
Reviewed-on: https://gerrit.libreoffice.org/41361
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 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();
More information about the Libreoffice-commits
mailing list