From bf000215bcd524631b4f27ea4bc35229b48289f3 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Mon, 30 Aug 2021 16:41:52 +0200 Subject: tdf#144183: restore 'erase' that was accidentally dropped ... in d47ac2ebdb495b025eb26e17cbbe2509797c31f0 Change-Id: Ic4946b72a0ef599428af5b806754bda5f0906990 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121282 Tested-by: Mike Kaganski Reviewed-by: Mike Kaganski (cherry picked from commit 638acd81979f24262c29dc12e0289d7fc38fcd8b) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121284 Tested-by: Jenkins Reviewed-by: Noel Grandin (cherry picked from commit bcc8fa6c0e5bcb6ca0da74a02427cf07e2abd0e7) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121285 Reviewed-by: Michael Stahl Reviewed-by: Xisco Fauli Reviewed-by: Adolfo Jayme Barrientos Tested-by: Adolfo Jayme Barrientos --- svtools/source/control/tabbar.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx index ae2c0e0d3e43..4bca7ccbb99d 100644 --- a/svtools/source/control/tabbar.cxx +++ b/svtools/source/control/tabbar.cxx @@ -1659,6 +1659,7 @@ void TabBar::MovePage(sal_uInt16 nPageId, sal_uInt16 nNewPos) auto it = mpImpl->maItemList.begin(); it += nPos; ImplTabBarItem aItem = std::move(*it); + mpImpl->maItemList.erase(it); if (nNewPos < mpImpl->maItemList.size()) { it = mpImpl->maItemList.begin(); -- cgit