mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-24 20:49:13 +00:00
[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:
parent
6b1e2ed8ff
commit
69b40d2270
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue