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>
* Headers/AppKit/NSDataLinkManager.h: Moved NSDataLinkManager delegate

View file

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