Author: rmottola Date: Tue Apr 7 23:16:28 2015 New Revision: 38450 URL: http://svn.gna.org/viewcvs/gnustep?rev=38450&view=rev Log: Use constants and not strings as keys.
Modified: apps/projectcenter/trunk/ChangeLog apps/projectcenter/trunk/Modules/Editors/ProjectCenter/PCEditorView.m Modified: apps/projectcenter/trunk/ChangeLog URL: http://svn.gna.org/viewcvs/gnustep/apps/projectcenter/trunk/ChangeLog?rev=38450&r1=38449&r2=38450&view=diff ============================================================================== --- apps/projectcenter/trunk/ChangeLog (original) +++ apps/projectcenter/trunk/ChangeLog Tue Apr 7 23:16:28 2015 @@ -1,3 +1,8 @@ +2015-04-07 Riccardo Mottola <r...@gnu.org> + + * Modules/Editors/ProjectCenter/PCEditorView.m + Use constants and not strings as keys. + 2015-03-22 Riccardo Mottola <r...@gnu.org> * Modules/Preferences/EditorFSC/PCEditorFSCPrefs.m Modified: apps/projectcenter/trunk/Modules/Editors/ProjectCenter/PCEditorView.m URL: http://svn.gna.org/viewcvs/gnustep/apps/projectcenter/trunk/Modules/Editors/ProjectCenter/PCEditorView.m?rev=38450&r1=38449&r2=38450&view=diff ============================================================================== --- apps/projectcenter/trunk/Modules/Editors/ProjectCenter/PCEditorView.m (original) +++ apps/projectcenter/trunk/Modules/Editors/ProjectCenter/PCEditorView.m Tue Apr 7 23:16:28 2015 @@ -43,6 +43,7 @@ #import "PCEditor.h" #import "SyntaxHighlighter.h" #import "LineJumper.h" +#import "Modules/Preferences/EditorFSC/PCEditorFSCPrefs.h" static inline float my_abs(float aValue) { @@ -379,10 +380,10 @@ float fontSize; NSFont *font = nil; - fontName = [df objectForKey:@"EditorTextFont"]; - fontSize = [df floatForKey:@"EditorTextFontSize"]; - - if (fontName != nil) + fontName = [df objectForKey:EditorTextFont]; + fontSize = [df floatForKey:EditorTextFontSize]; + + if (fontName != nil && fontSize > 0) { font = [NSFont fontWithName:fontName size:fontSize]; } _______________________________________________ Gnustep-cvs mailing list Gnustep-cvs@gna.org https://mail.gna.org/listinfo/gnustep-cvs