diff --git a/AppKit/CPFontManager.j b/AppKit/CPFontManager.j index f2159359d..d10a27e44 100644 --- a/AppKit/CPFontManager.j +++ b/AppKit/CPFontManager.j @@ -208,7 +208,11 @@ CPRemoveTraitFontAction = 7; - (@action)addFontTrait:(id)sender { - var tag = [sender tag]; + var tag = sender; + + if ([sender respondsToSelector:@selector(tag)]) + tag = [sender tag]; + _activeChange = tag == nil ? @{} : @{ @"addTraits": tag }; _fontAction = CPAddTraitFontAction;