diff options
author | Manish Singh <yosh@gimp.org> | 2003-09-01 05:11:17 +0000 |
---|---|---|
committer | Manish Singh <yosh@gimp.org> | 2003-09-01 05:11:17 +0000 |
commit | 3ef32bcdc4662fbc10bc5217ea7849cd31480d73 (patch) | |
tree | f50fd6db6a7087b80a1ce07d3602be61e2339af0 /src | |
parent | 34cd0514a215d65af6822eba2c2f0cd04eb0065f (diff) |
FcConfigAppFontClear: Support passing NULL to use default config.
Diffstat (limited to 'src')
-rw-r--r-- | src/fccfg.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/fccfg.c b/src/fccfg.c index 12cad84..f393c79 100644 --- a/src/fccfg.c +++ b/src/fccfg.c @@ -1727,6 +1727,13 @@ FcConfigAppFontAddDir (FcConfig *config, void FcConfigAppFontClear (FcConfig *config) { + if (!config) + { + config = FcConfigGetCurrent (); + if (!config) + return; + } + FcConfigSetFonts (config, 0, FcSetApplication); } |