[Libreoffice-commits] core.git: Branch 'libreoffice-4-1' - svl/source

Michael Stahl mstahl at redhat.com
Tue Aug 13 00:46:23 PDT 2013


 svl/source/undo/undo.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 2dbff02d9de9d2211a1c000663f3d6f2566d195a
Author: Michael Stahl <mstahl at redhat.com>
Date:   Mon Aug 12 23:48:45 2013 +0200

    fdo#66071: SfxUndoManager: allow Writer to set modified status properly
    
    If Undo actions are removed due to max undo limit, invalidate the
    current empty mark so it is different from sw::UndoManager::m_UndoSaveMark.
    
    Change-Id: I20415f42a77b67e9935c75b12df675ba1c5ef5ec
    (cherry picked from commit 1ff7dfa533b473d721c372ae801a46ecd513b32f)
    Reviewed-on: https://gerrit.libreoffice.org/5379
    Reviewed-by: Miklos Vajna <vmiklos at suse.cz>
    Tested-by: Miklos Vajna <vmiklos at suse.cz>

diff --git a/svl/source/undo/undo.cxx b/svl/source/undo/undo.cxx
index 72929b7..d745751 100644
--- a/svl/source/undo/undo.cxx
+++ b/svl/source/undo/undo.cxx
@@ -648,6 +648,8 @@ bool SfxUndoManager::ImplAddUndoAction_NoNotify( SfxUndoAction *pAction, bool bT
             {
                 --m_pData->pActUndoArray->nCurUndoAction;
             }
+            // fdo#66071 invalidate the current empty mark when removing
+            --m_pData->mnEmptyMark;
         }
     }
 


More information about the Libreoffice-commits mailing list