From 69b40d2270e8f9feacdee2c90dff4c6836fba6b3 Mon Sep 17 00:00:00 2001 From: Fred Kiefer Date: Sun, 22 Apr 2001 22:59:52 +0000 Subject: [PATCH] [initialize] call [NSUserDefaults standardUserDefaults] as a workaround for the setlocal() problem. Otherwise colorFromString: will fail later on for the system colours. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9660 72102866-910b-0410-8b05-ffd578937521 --- Source/NSColor.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/NSColor.m b/Source/NSColor.m index 1ee5c5ac3..377636701 100644 --- a/Source/NSColor.m +++ b/Source/NSColor.m @@ -277,6 +277,10 @@ systemColorWithName(NSString *name) // ignore alpha by default gnustep_gui_ignores_alpha = YES; + // We call this so that the local information is set up before + // initSystemColors() converts floats to strings. + [NSUserDefaults standardUserDefaults]; + // Load or define the system colour list initSystemColors(); @@ -1247,6 +1251,7 @@ systemColorWithName(NSString *name) alpha: 1.0]; } } + return nil; }