Commit dcf42ab9 authored by David Fuhrmann's avatar David Fuhrmann

macosx: fix crash when opening goto window (close #9488)

parent c08a562b
......@@ -883,7 +883,12 @@ void _drawFrameInRect(NSRect frameRect)
- (NSString*)stringForObjectValue:(id)obj
{
return obj;
if([obj isKindOfClass:[NSString class]])
return obj;
if([obj isKindOfClass:[NSNumber class]])
return [obj stringValue];
return nil;
}
- (BOOL)getObjectValue:(id*)obj forString:(NSString*)string errorDescription:(NSString**)error
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment