svx/source/svdraw/svdmark.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 97eaf7bbb6ac66a2d71fe9a8cf962a673ee25b10
Author: Mike Kaganski <[email protected]>
Date: Mon Nov 14 10:45:23 2016 +0300
related: if we're empty, we're back to initial 'sorted' state
commit ae922863c4932be38ef53ae5e985a668724e8f15 followup
Change-Id: Ia9b8749880cc8c2b83dd59b4d7325cd666881c46
Reviewed-on: https://gerrit.libreoffice.org/30837
Reviewed-by: Caolán McNamara <[email protected]>
Tested-by: Caolán McNamara <[email protected]>
diff --git a/svx/source/svdraw/svdmark.cxx b/svx/source/svdraw/svdmark.cxx
index 7db7bbb..66e5f6e 100644
--- a/svx/source/svdraw/svdmark.cxx
+++ b/svx/source/svdraw/svdmark.cxx
@@ -336,6 +336,8 @@ void SdrMarkList::DeleteMark(size_t nNum)
{
maList.erase(maList.begin() + nNum);
delete pMark;
+ if (maList.empty())
+ mbSorted = true; //we're empty, so can be considered sorted
SetNameDirty();
}
}
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits