2004-12-09 Matt Rice <ratmice@yahoo.com>

* Source/NSUndoManager.m
        ([-forwardInvocation,-registerUndoWithTarget:selector:object:): Don't
        clear the redo stack if redoing.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20432 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Matt Rice 2004-12-09 09:36:00 +00:00
parent 830807a27f
commit b83d4ae778
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2004-12-09 Matt Rice <ratmice@yahoo.com>
* Source/NSUndoManager.m
([-forwardInvocation,-registerUndoWithTarget:selector:object:): Don't
clear the redo stack if redoing.
2004-12-07 Adam Fedor <fedor@gnu.org>
* configure.ac: Test for objc forwarding by compiling a program.

View file

@ -418,7 +418,7 @@
[anInvocation setTarget: _nextTarget];
_nextTarget = nil;
[_group addInvocation: anInvocation];
if (_isUndoing == NO)
if (_isUndoing == NO && _isRedoing == NO)
{
[_redoStack removeAllObjects];
}
@ -714,7 +714,7 @@
[inv setSelector: aSelector];
[inv setArgument: &anObject atIndex: 2];
[g addInvocation: inv];
if (_isUndoing == NO)
if (_isUndoing == NO && _isRedoing == NO)
{
[_redoStack removeAllObjects];
}