mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
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:
parent
5a08f449a7
commit
3ae6ffea81
2 changed files with 8 additions and 2 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue