Redo fix.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20552 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2005-01-14 11:49:46 +00:00
parent 38bd9809e8
commit aef3b74a59
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2005-01-14 06:50 Gregory John Casamento <greg_casamento@yahoo.com>
* Source/NSUndoManager.m: Correction for redo.
2005-01-14 05:43 Gregory John Casamento <greg_casamento@yahoo.com>
* Source/NSUndoManager.m: Fix forward invocation to not add

View file

@ -422,7 +422,7 @@
[anInvocation setTarget: _nextTarget];
_nextTarget = nil;
[_group addInvocation: anInvocation];
if (_isUndoing == NO && _isRedoing == NO)
if (_isUndoing == NO && _isRedoing == NO && [_group actions] > 0)
{
[_redoStack removeAllObjects];
}