(getNSFont): Only update the cache when the font has the default size.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17090 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Alexander Malmberg 2003-07-02 23:44:48 +00:00
parent d4fff8ae12
commit 82c83b3237
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2003-07-03 01:43 Alexander Malmberg <alexander@malmberg.org>
* Source/NSFont.m (getNSFont): Only update the cache when the font
has the default size.
2003-07-02 16:38 Alexander Malmberg <alexander@malmberg.org>
* Source/NSFont.m: (Mostly) rewrite handling of standard fonts to

View file

@ -316,7 +316,8 @@ static NSFont *getNSFont(float fontSize, int role)
}
}
ASSIGN(font_roles[role].cachedFont, font);
if (defaultSize)
ASSIGN(font_roles[role].cachedFont, font);
return font;
}