From fc141b492bab23d58d248fc3b6d34bcb9c5faa99 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sat, 3 Nov 2007 22:45:31 -0700 Subject: [PATCH] Have FcConfigSetCurrent accept the current configuration and simply return without updating anything. --- src/fccfg.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.39.5