]> git.wh0rd.org Git - fontconfig.git/commitdiff
Have FcConfigSetCurrent accept the current configuration and simply return
authorKeith Packard <keithp@koto.keithp.com>
Sun, 4 Nov 2007 05:45:31 +0000 (22:45 -0700)
committerKeith Packard <keithp@koto.keithp.com>
Sun, 4 Nov 2007 05:45:31 +0000 (22:45 -0700)
without updating anything.

src/fccfg.c

index 18a74e7e82ef7e1776d099452f0bd0aa0fc6b358..7b2fad5b110f96c65f2029727cb32b4721ed8155 100644 (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;