* Source/NSOutlineView.m: Added change suggested by Doug in

bug #25078.  This should fix the problem in SVN.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27285 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2008-12-13 00:32:24 +00:00
parent 655fa58b2c
commit 8d584d8b43
2 changed files with 14 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2008-12-12 19:36-EST Gregory John Casamento <greg_casamento@yahoo.com>
* Source/NSOutlineView.m: Added change suggested by Doug in
bug #25078. This should fix the problem in SVN.
2008-12-12 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSBrowser.m (-drawTitle:inRect:ofColumn:, -dealloc):

View file

@ -1711,12 +1711,19 @@ static NSImage *unexpandable = nil;
- (void) _loadDictionaryStartingWith: (id) startitem
atLevel: (int) level
{
int num = [_dataSource outlineView: self
numberOfChildrenOfItem: startitem];
int num = 0;
int i = 0;
id sitem = (startitem == nil) ? (id)[NSNull null] : (id)startitem;
NSMutableArray *anarray = nil;
// Check to see if item is expandable before getting the number of
// items.
if([_dataSource outlineView: self isItemExpandable: startitem])
{
num = [_dataSource outlineView: self
numberOfChildrenOfItem: startitem];
}
if (num > 0)
{
anarray = [NSMutableArray array];