Kaydet (Commit) db59e448 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Do not move nCurUndoAction < 0.

(Could easily happen when max undo steps is set to 1.)
üst 4603028b
......@@ -654,7 +654,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;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment