summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-08-30 16:41:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-08-31 08:12:24 +0200
commitbcc8fa6c0e5bcb6ca0da74a02427cf07e2abd0e7 (patch)
treead7771fc47a6fc0544b8f013d2ee8fdc42e81a95 /svtools
parentaac2c3052ae87b2d0ab8fcdc327fda8903fc77ff (diff)
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 <mike.kaganski@collabora.com> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> (cherry picked from commit 638acd81979f24262c29dc12e0289d7fc38fcd8b) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121284 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/tabbar.cxx1
1 files changed, 1 insertions, 0 deletions
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();