Have FcConfigSetCurrent accept the current configuration and simply return
without updating anything.
This commit is contained in:
parent
7c6939793b
commit
fc141b492b
|
@ -332,6 +332,9 @@ FcConfigBuildFonts (FcConfig *config)
|
|||
FcBool
|
||||
FcConfigSetCurrent (FcConfig *config)
|
||||
{
|
||||
if (config == _fcConfig)
|
||||
return FcTrue;
|
||||
|
||||
if (!config->fonts)
|
||||
if (!FcConfigBuildFonts (config))
|
||||
return FcFalse;
|
||||
|
|
Loading…
Reference in New Issue