Corrected bug #11885 on NSOutlineView, this could be optimised further.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20668 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
FredKiefer 2005-02-07 21:27:06 +00:00
parent d8aeb282ab
commit 419a3200aa
2 changed files with 15 additions and 4 deletions

View file

@ -1,3 +1,10 @@
2005-02-07 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSTableView.m (-expandItem:expandChildren:,
collapseItem:collapseChildren:): Added a call to setNeedsDisplay:,
so the new status will be shown correctly.
(_openItem:): Removed setNeedsDisplay: call as all callers do it already.
2005-02-05 15:42 Gregory John Casamento <greg_casamento@yahoo.com> 2005-02-05 15:42 Gregory John Casamento <greg_casamento@yahoo.com>
* Headers/AppKit/NSDataLinkManager.h: Moved NSDataLinkManager delegate * Headers/AppKit/NSDataLinkManager.h: Moved NSDataLinkManager delegate
@ -158,7 +165,7 @@
2005-01-20 Fred Kiefer <FredKiefer@gmx.de> 2005-01-20 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSTableView.m (-rowAtPoint:): If the heigh of the table * Source/NSTableView.m (-rowAtPoint:): If the heigh of the table
is incorrect and because of this the row would be greater than the is incorrect and because of this the row would be greater than the
number of rows, return a usable number. number of rows, return a usable number.

View file

@ -279,6 +279,8 @@ static NSImage *unexpandable = nil;
} }
} }
[self noteNumberOfRowsChanged]; [self noteNumberOfRowsChanged];
// Should only mark the rect below the closed item for redraw
[self setNeedsDisplay: YES];
} }
} }
@ -366,9 +368,12 @@ static NSImage *unexpandable = nil;
[self expandItem: child expandChildren: expandChildren]; [self expandItem: child expandChildren: expandChildren];
} }
} }
} }
[self noteNumberOfRowsChanged];
// Should only mark the rect below the expanded item for redraw
[self setNeedsDisplay: YES];
} }
[self noteNumberOfRowsChanged];
} }
/** /**
@ -1802,7 +1807,6 @@ static NSImage *unexpandable = nil;
insertionPoint++; insertionPoint++;
} }
[self setNeedsDisplay: YES];
for(i=numchildren-1; i >= 0; i--) for(i=numchildren-1; i >= 0; i--)
{ {
id obj = NSMapGet(_itemDict, sitem); id obj = NSMapGet(_itemDict, sitem);