Permalink
Browse files

Merge pull request #203 from jonklein/master

Fix crash when making cross reference from static markdown document. Closes #203.
  • Loading branch information...
2 parents 2273f62 + a67dae3 commit e19b1b720daae376956d6bd1109a6ef64955de8c @tomaz committed Mar 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Processing/GBCommentsProcessor.m
@@ -716,7 +716,7 @@ - (BOOL)isCrossReference:(GBCrossRefData *)data matchingObject:(id)object {
else if ([object isKindOfClass:[GBProtocolData class]])
if ([data->description isEqualToString:[object nameOfProtocol]]) return YES;
} else {
- if ([data->description isEqualToString:[object methodSelector]]) return YES;
+ if (![object isKindOfClass:[GBDocumentData class]] && [data->description isEqualToString:[object methodSelector]]) return YES;
}
return NO;
}

0 comments on commit e19b1b7

Please sign in to comment.