summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-08-12 23:48:45 +0200
committerAndras Timar <andras.timar@collabora.com>2013-11-05 11:46:55 +0100
commitc4828099bc2336c3f963b913ecddac4c101cddeb (patch)
tree7e520d1cb73371d3dbe1820cfa65c4a4dee849e2 /svl
parent79cc70f0c5e4b57a4bb8757d53f35dcfda744abc (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>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/undo/undo.cxx2
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;
}
}