From: Keith Packard Date: Sun, 4 Nov 2007 05:45:31 +0000 (-0700) Subject: Have FcConfigSetCurrent accept the current configuration and simply return X-Git-Tag: 2.4.92~22 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=fc141b492bab23d58d248fc3b6d34bcb9c5faa99;p=fontconfig.git Have FcConfigSetCurrent accept the current configuration and simply return without updating anything. --- diff --git a/src/fccfg.c b/src/fccfg.c index 18a74e7..7b2fad5 100644 --- a/src/fccfg.c +++ b/src/fccfg.c @@ -332,6 +332,9 @@ FcConfigBuildFonts (FcConfig *config) FcBool FcConfigSetCurrent (FcConfig *config) { + if (config == _fcConfig) + return FcTrue; + if (!config->fonts) if (!FcConfigBuildFonts (config)) return FcFalse;