Commit fc141b49 authored by Keith Packard's avatar Keith Packard
Browse files

Have FcConfigSetCurrent accept the current configuration and simply return

without updating anything.
parent 7c693979
...@@ -332,6 +332,9 @@ FcConfigBuildFonts (FcConfig *config) ...@@ -332,6 +332,9 @@ FcConfigBuildFonts (FcConfig *config)
FcBool FcBool
FcConfigSetCurrent (FcConfig *config) FcConfigSetCurrent (FcConfig *config)
{ {
if (config == _fcConfig)
return FcTrue;
if (!config->fonts) if (!config->fonts)
if (!FcConfigBuildFonts (config)) if (!FcConfigBuildFonts (config))
return FcFalse; return FcFalse;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment