diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-08-12 23:48:45 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-08-14 17:45:30 +0000 |
commit | 651f3bfa7bc843e778c851e6cafc32e401c3890d (patch) | |
tree | 92c4bc1fa26ecc4f50dfaed558e21a0d5660ae63 | |
parent | 569843373b6654e155f897a2a9e3a02d6e010675 (diff) |
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/5380
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | svl/source/undo/undo.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/svl/source/undo/undo.cxx b/svl/source/undo/undo.cxx index 379a327e5d80..5862acc34cc9 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; } } |