svl/source/undo/undo.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit f5dce79d272b47886f16a422f985ee250d228649 Author: Stephan Bergmann <sberg...@redhat.com> Date: Fri Jan 27 14:58:19 2012 +0100 Do not move nCurUndoAction < 0. (Could easily happen when max undo steps is set to 1.) Signed-off-by: Michael Meeks <michael.me...@suse.com> diff --git a/svl/source/undo/undo.cxx b/svl/source/undo/undo.cxx index e3b8cd1..e61d695 100644 --- a/svl/source/undo/undo.cxx +++ b/svl/source/undo/undo.cxx @@ -658,7 +658,10 @@ bool SfxUndoManager::ImplAddUndoAction_NoNotify( SfxUndoAction *pAction, bool bT { i_guard.markForDeletion( m_pData->pActUndoArray->aUndoActions[0].pAction ); m_pData->pActUndoArray->aUndoActions.Remove(0); - --m_pData->pActUndoArray->nCurUndoAction; + if (m_pData->pActUndoArray->nCurUndoAction > 0) + { + --m_pData->pActUndoArray->nCurUndoAction; + } } } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits