diff --git a/ChangeLog b/ChangeLog index 929ed92e9..cb2c87987 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-01-03 Richard Frith-Macdonald + + * Tools/AGSHtml.m: Don't try to make a type reference to the + superclass of NSObject. + 2002-12-31 Richard Frith-Macdonald * Source/NSPage.m: Document all functions. diff --git a/Tools/AGSHtml.m b/Tools/AGSHtml.m index 89d97bc5f..e62c543ef 100644 --- a/Tools/AGSHtml.m +++ b/Tools/AGSHtml.m @@ -532,11 +532,14 @@ static NSMutableSet *textNodes = nil; [buf appendString: @"

"]; [buf appendString: [self makeAnchor: classname ofType: @"class" name: classname]]; - sup = [self typeRef: sup]; if (sup != nil) { - [buf appendString: @" : "]; - [buf appendString: sup]; + sup = [self typeRef: sup]; + if (sup != nil) + { + [buf appendString: @" : "]; + [buf appendString: sup]; + } } [buf appendString: @"

\n"]; [self outputUnit: node to: buf]; @@ -2178,6 +2181,10 @@ NSLog(@"Element '%@' not implemented", name); // FIXME NSRange er; NSRange sr; + if (end == 0) + { + return nil; + } t = str; while (end > 0) {