mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-24 19:12:15 +00:00
If we have no face set, don't append null
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40028 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
564ea8d330
commit
c3ab82b30e
2 changed files with 7 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
<abstract>The font descriptor class</abstract>
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc.
|
||||
Copyright (C) 2007-2016 Free Software Foundation, Inc.
|
||||
|
||||
Author: H. Nikolaus Schaller <hns@computer.org>
|
||||
Date: 2006
|
||||
|
@ -268,7 +268,7 @@
|
|||
withString: @""
|
||||
options: 0
|
||||
range: NSMakeRange(0, [family length])];
|
||||
if ([face isEqualToString: @"Regular"])
|
||||
if (!face || [face isEqualToString: @"Regular"])
|
||||
return family;
|
||||
return [NSString stringWithFormat: @"%@-%@", family, face];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue