mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 12:00:52 +00:00
(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:
parent
d4fff8ae12
commit
82c83b3237
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue