From b5e637be5fdd3e9df89aac17077fa373dbe4e312 Mon Sep 17 00:00:00 2001 From: Riccardo Mottola Date: Wed, 11 Mar 2015 10:19:16 +0000 Subject: [PATCH] Bug Fix: Set the font manager with the picked font, not always the same git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@38398 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 5 +++++ Modules/Preferences/EditorFSC/PCEditorFSCPrefs.m | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4519364..3c858e0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-03-11 Riccardo Mottola + + * Modules/Preferences/EditorFSC/PCEditorFSCPrefs.m + Bug Fix: Set the font manager with the picked font, not always the same. + 2015-03-11 Riccardo Mottola * Modules/Preferences/EditorFSC/PCEditorFSCPrefs.h diff --git a/Modules/Preferences/EditorFSC/PCEditorFSCPrefs.m b/Modules/Preferences/EditorFSC/PCEditorFSCPrefs.m index 501d9cb..f8b9174 100644 --- a/Modules/Preferences/EditorFSC/PCEditorFSCPrefs.m +++ b/Modules/Preferences/EditorFSC/PCEditorFSCPrefs.m @@ -102,11 +102,11 @@ // --- Utility methods // ---------------------------------------------------------------------------- -- (void)pickFont:(NSFont *)currentFont +- (void)pickFont:(NSFont *)pickedFont { NSFontManager *fontManager = [NSFontManager sharedFontManager]; - [fontManager setSelectedFont:currentEditorFont isMultiple:NO]; + [fontManager setSelectedFont:pickedFont isMultiple:NO]; [fontManager orderFrontFontPanel:self]; }