Kaydet (Commit) 97eaf7bb authored tarafından Mike Kaganski's avatar Mike Kaganski Kaydeden (comit) Caolán McNamara

related: if we're empty, we're back to initial 'sorted' state

commit ae922863 followup

Change-Id: Ia9b8749880cc8c2b83dd59b4d7325cd666881c46
Reviewed-on: https://gerrit.libreoffice.org/30837Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 450762b2
...@@ -336,6 +336,8 @@ void SdrMarkList::DeleteMark(size_t nNum) ...@@ -336,6 +336,8 @@ void SdrMarkList::DeleteMark(size_t nNum)
{ {
maList.erase(maList.begin() + nNum); maList.erase(maList.begin() + nNum);
delete pMark; delete pMark;
if (maList.empty())
mbSorted = true; //we're empty, so can be considered sorted
SetNameDirty(); SetNameDirty();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment