diff options
author | Andreas Heinisch <andreas.heinisch@yahoo.de> | 2023-12-21 20:33:20 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2023-12-22 12:30:54 +0100 |
commit | b3e86695022f8db57344f4115ee360072d671838 (patch) | |
tree | 9e581041e492c49807784245b8736eddecf448d2 /svtools | |
parent | 4966d3a344c18d8ef47613fbd6c1b1b1e90eb8f3 (diff) |
Revert "tdf#100584 - Arrange sheets in the tab bar depending on the RTL settings"
This reverts commit be86c8f2432623fdb8ed4f22ca08c35121fd8bec.
Reason for revert: To many regressions.
Change-Id: Id3fb8dc5d4edb84c0008b7834a80887aaa7d9f83
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161154
Tested-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
(cherry picked from commit 3430a2c639a9f714259f9d319515464a653d21ab)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161159
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/tabbar.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx index 1690269ba234..f9faa2bbe0dc 100644 --- a/svtools/source/control/tabbar.cxx +++ b/svtools/source/control/tabbar.cxx @@ -710,15 +710,10 @@ void TabBar::ImplFormat() if (!mbFormat) return; + sal_uInt16 nItemIndex = 0; tools::Long x = mnOffX; - - const size_t nItemListSize = mpImpl->maItemList.size(); - for (size_t nItemIndex = 0; nItemIndex < nItemListSize; nItemIndex++) + for (auto & rItem : mpImpl->maItemList) { - // tdf#100584 - arrange sheets depending on the RTL settings - auto& rItem = mbMirrored ? mpImpl->maItemList[nItemListSize - nItemIndex - 1] - : mpImpl->maItemList[nItemIndex]; - // At all non-visible tabs an empty rectangle is set if ((nItemIndex + 1 < mnFirstPos) || (x > mnLastOffX)) rItem.maRect.SetEmpty(); @@ -746,6 +741,8 @@ void TabBar::ImplFormat() rItem.maRect.SetLeft(nNewLeft); } } + + nItemIndex++; } mbFormat = false; |