Fix missing font hack with defaults key GSDefaultForMissingFont set to font name to use

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@38831 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Marcian Lytwyn 2015-07-22 16:02:13 +00:00
parent d1ea62a81e
commit a333b4608e

View file

@ -880,7 +880,7 @@ static void setNSFont(NSString *key, NSFont *font)
}
// In case the font for name was missing also...
if (cls && [GSCurrentServer() isKindOfClass: cls])
if (fontInfo == nil)
{
// HACK FIX FOR MISSING FONT - NEEDS TO BE FIXED...
fontInfo = RETAIN([GSFontInfo fontInfoForFontName: @"Arial"