summaryrefslogtreecommitdiff
path: root/svl/source/undo
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-10-14 17:07:31 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-10-24 10:54:08 +0200
commit148fa9e9405b143f9fc228d9b5f967cad3139967 (patch)
treeb8c93c1e9ea7083c48d311942e1984b123ff2495 /svl/source/undo
parentcaf1bc0c4c559999d44b83ff8ace43b5e7fcf3f1 (diff)
tdf#157130 undo and track changes not restoring characters (macOS)
Not sure about the real underlying issue here. In debug mode, we hit this assert. Changing it from an assert to a "do decrement mnEmptyMark if it would become negative" seems to help. Change-Id: Ie23a685552d2f8153b67e18f9c0203ecbaad0ede Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174905 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl/source/undo')
-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;
}
}