From e25953b79d526a16488a826f469c44c0ec9c07b3 Mon Sep 17 00:00:00 2001 From: Gregory John Casamento Date: Sun, 15 Feb 2004 18:04:32 +0000 Subject: [PATCH] Corrected out of range exception. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@18602 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 5 +++++ GormClassInspector.m | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 114b5861..2d82a31d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-02-15 13:11 Gregory John Casamento + + * GormClassInspector.m: -[GormClassInspector _refreshView] + Corrected an issue when user clicked on NSObject. + 2004-02-14 19:55 Gregory John Casamento * GormShelfPref.[hm]: Added controller class for new preferences diff --git a/GormClassInspector.m b/GormClassInspector.m index 5549f49c..036b6ab5 100644 --- a/GormClassInspector.m +++ b/GormClassInspector.m @@ -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