mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +00:00
Fixed to remove grouping in progress.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22578 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
988a86dda1
commit
b765402e47
2 changed files with 16 additions and 6 deletions
|
@ -7,6 +7,8 @@
|
|||
global setter mechanism (strangely recommended in the libxml2 docs),
|
||||
so that all setup is made to the individual parser and should not
|
||||
effect other parsers in other threads.
|
||||
* Source/NSUndoManager.m: ([-removeAllActions]) fixed to remove any
|
||||
grouping in progress.
|
||||
|
||||
2006-02-27 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
|
|
|
@ -340,7 +340,9 @@
|
|||
{
|
||||
if (_isUndoing)
|
||||
{
|
||||
if (_levelsOfUndo > 0 && [_redoStack count] == _levelsOfUndo && [[g actions] count] > 0)
|
||||
if (_levelsOfUndo > 0
|
||||
&& [_redoStack count] == _levelsOfUndo
|
||||
&& [[g actions] count] > 0)
|
||||
{
|
||||
[_redoStack removeObjectAtIndex: 0];
|
||||
}
|
||||
|
@ -353,7 +355,9 @@
|
|||
}
|
||||
else
|
||||
{
|
||||
if (_levelsOfUndo > 0 && [_undoStack count] == _levelsOfUndo && [[g actions] count] > 0)
|
||||
if (_levelsOfUndo > 0
|
||||
&& [_undoStack count] == _levelsOfUndo
|
||||
&& [[g actions] count] > 0)
|
||||
{
|
||||
[_undoStack removeObjectAtIndex: 0];
|
||||
}
|
||||
|
@ -758,6 +762,10 @@
|
|||
*/
|
||||
- (void) removeAllActions
|
||||
{
|
||||
while (_group != nil)
|
||||
{
|
||||
[self endUndoGrouping];
|
||||
}
|
||||
[_redoStack removeAllObjects];
|
||||
[_undoStack removeAllObjects];
|
||||
_isRedoing = NO;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue