summaryrefslogtreecommitdiff
path: root/svl/source/undo/undo.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svl/source/undo/undo.cxx')
-rw-r--r--svl/source/undo/undo.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/svl/source/undo/undo.cxx b/svl/source/undo/undo.cxx
index ab33374507fc..cb278cf153c3 100644
--- a/svl/source/undo/undo.cxx
+++ b/svl/source/undo/undo.cxx
@@ -583,13 +583,9 @@ bool SfxUndoManager::ImplAddUndoAction_NoNotify( std::unique_ptr<SfxUndoAction>
if (m_xData->pActUndoArray->nCurUndoAction > 0)
{
--m_xData->pActUndoArray->nCurUndoAction;
+ // fdo#66071 invalidate the current empty mark when removing
+ --m_xData->mnEmptyMark;
}
- else
- {
- assert(!"CurrentUndoAction going negative (!)");
- }
- // fdo#66071 invalidate the current empty mark when removing
- --m_xData->mnEmptyMark;
}
}