Corrected out of range exception.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@18602 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2004-02-15 18:04:32 +00:00
parent 7ad8588887
commit e25953b79d
2 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2004-02-15 13:11 Gregory John Casamento <greg_casamento@yahoo.com>
* GormClassInspector.m: -[GormClassInspector _refreshView]
Corrected an issue when user clicked on NSObject.
2004-02-14 19:55 Gregory John Casamento <greg_casamento@yahoo.com>
* GormShelfPref.[hm]: Added controller class for new preferences

View file

@ -288,8 +288,11 @@ objectValueForTableColumn: (NSTableColumn *)tc
[searchCell setEnabled: (isCustom && !isFirstResponder)];
// select the parent class
[parentClass selectRow: index byExtendingSelection: NO];
[parentClass scrollRowToVisible: index];
if(index != NSNotFound)
{
[parentClass selectRow: index byExtendingSelection: NO];
[parentClass scrollRowToVisible: index];
}
}
- (void) addAction: (id)sender