[Libreoffice-commits] core.git: svx/source

Mike Kaganski mike.kaganski at collabora.com
Mon Nov 14 08:59:57 UTC 2016


 svx/source/svdraw/svdmark.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 97eaf7bbb6ac66a2d71fe9a8cf962a673ee25b10
Author: Mike Kaganski <mike.kaganski at collabora.com>
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 <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

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();
     }
 }


More information about the Libreoffice-commits mailing list