mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-24 06:28:54 +00:00
fixup fill style name conversion
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28849 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
028062089d
commit
bded0c0c91
2 changed files with 3 additions and 3 deletions
|
@ -192,7 +192,7 @@ extern NSString *
|
|||
GSThemeStringFromFillStyle(GSThemeFillStyle s);
|
||||
|
||||
/** Function to convert a string to a fill style enumeration value.<br />
|
||||
* Returns -1 on failure.
|
||||
* Returns GSThemeFillStyleNone if the string is not a valid name.
|
||||
*/
|
||||
extern GSThemeFillStyle
|
||||
GSThemeFillStyleFromString(NSString *s);
|
||||
|
|
|
@ -96,7 +96,7 @@ GSThemeStringFromFillStyle(GSThemeFillStyle s)
|
|||
GSThemeFillStyle
|
||||
GSThemeFillStyleFromString(NSString *s)
|
||||
{
|
||||
if ([s isEqualToString: @"None"])
|
||||
if (s == nil || [s isEqualToString: @"None"])
|
||||
{
|
||||
return GSThemeFillStyleNone;
|
||||
}
|
||||
|
@ -120,7 +120,7 @@ GSThemeFillStyleFromString(NSString *s)
|
|||
{
|
||||
return GSThemeFillStyleScaleAll;
|
||||
}
|
||||
return -1;
|
||||
return GSThemeFillStyleNone;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue