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
This commit is contained in:
Riccardo Mottola 2015-03-11 10:19:16 +00:00
parent 0087c6cd17
commit b5e637be5f
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2015-03-11 Riccardo Mottola <rm@gnu.org>
* Modules/Preferences/EditorFSC/PCEditorFSCPrefs.m
Bug Fix: Set the font manager with the picked font, not always the same.
2015-03-11 Riccardo Mottola <rm@gnu.org>
* Modules/Preferences/EditorFSC/PCEditorFSCPrefs.h

View file

@ -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];
}