Use constants and not strings as keys.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@38450 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Riccardo Mottola 2015-04-07 21:16:28 +00:00
parent 7c4cd31b73
commit 03d439d49c
2 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2015-04-07 Riccardo Mottola <rm@gnu.org>
* Modules/Editors/ProjectCenter/PCEditorView.m
Use constants and not strings as keys.
2015-03-22 Riccardo Mottola <rm@gnu.org>
* Modules/Preferences/EditorFSC/PCEditorFSCPrefs.m

View file

@ -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 @@ static int ComputeIndentingOffset(NSString * string, unsigned int start)
float fontSize;
NSFont *font = nil;
fontName = [df objectForKey:@"EditorTextFont"];
fontSize = [df floatForKey:@"EditorTextFontSize"];
fontName = [df objectForKey:EditorTextFont];
fontSize = [df floatForKey:EditorTextFontSize];
if (fontName != nil)
if (fontName != nil && fontSize > 0)
{
font = [NSFont fontWithName:fontName size:fontSize];
}