Commit bf31a6b4 authored by David Fuhrmann's avatar David Fuhrmann

macosx: Fix font selection when some fonts are disabled

Usage of selectedFont inside changeFont: is not allowed, and its
not needed as all the necessary work is done in convertFont:.

close #13740
parent b2c33b64
......@@ -1268,8 +1268,12 @@ static inline void save_string_list(intf_thread_t * p_intf, id object, const cha
- (void)changeFont:(id)sender
{
NSFont * font = [sender convertFont:[[NSFontManager sharedFontManager] selectedFont]];
[o_osd_font_fld setStringValue:[font fontName]];
NSFont *someFont = [NSFont systemFontOfSize:12];
// converts given font to changes in font panel. Original font is irrelevant
NSFont *selectedFont = [sender convertFont:someFont];
[o_osd_font_fld setStringValue:[selectedFont fontName]];
[self osdSettingChanged:self];
}
......
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