[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
This commit is contained in:
Fred Kiefer 2001-04-22 22:59:52 +00:00
parent 6b1e2ed8ff
commit 69b40d2270

View file

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