Have FcConfigSetCurrent accept the current configuration and simply return

without updating anything.
This commit is contained in:
Keith Packard 2007-11-03 22:45:31 -07:00
parent 7c6939793b
commit fc141b492b
1 changed files with 3 additions and 0 deletions

View File

@ -332,6 +332,9 @@ FcConfigBuildFonts (FcConfig *config)
FcBool
FcConfigSetCurrent (FcConfig *config)
{
if (config == _fcConfig)
return FcTrue;
if (!config->fonts)
if (!FcConfigBuildFonts (config))
return FcFalse;