From 97eaf7bbb6ac66a2d71fe9a8cf962a673ee25b10 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Mon, 14 Nov 2016 10:45:23 +0300 Subject: related: if we're empty, we're back to initial 'sorted' state MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit commit ae922863c4932be38ef53ae5e985a668724e8f15 followup Change-Id: Ia9b8749880cc8c2b83dd59b4d7325cd666881c46 Reviewed-on: https://gerrit.libreoffice.org/30837 Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- svx/source/svdraw/svdmark.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'svx') diff --git a/svx/source/svdraw/svdmark.cxx b/svx/source/svdraw/svdmark.cxx index 7db7bbb50935..66e5f6eb71b0 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(); } } -- cgit