The code in question assumed that NSFontPanel's accessory view eitherdidn't exist or was created by wx, and casted it towxMacFontPanelAccView* without checking. But this assumption is nolonger true on OS X 10.10, the view is apparently pre-set to somedefault NSView instance.

Fix the code to check accessoryView's class before treating it aswxMacFontPanelAccView."