summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-08-12 23:48:45 +0200
committerMichael Stahl <mstahl@redhat.com>2013-08-13 00:07:31 +0200
commit1ff7dfa533b473d721c372ae801a46ecd513b32f (patch)
tree50d0321d34e01fc498868928c7bbb4a70d7b335d /svl
parent57dab8f42201a95bceb7d2bd5752434714409065 (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
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 4ed216eb32c5..867f72d311bf 100644
--- a/svl/source/undo/undo.cxx
+++ b/svl/source/undo/undo.cxx
@@ -600,6 +600,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;
}
}