FcConfigAppFontClear: Support passing NULL to use default config.

This commit is contained in:
Manish Singh 2003-09-01 05:11:17 +00:00
parent 34cd0514a2
commit 3ef32bcdc4
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2003-08-31 Manish Singh <yosh@gimp.org>
* src/fccfg.c (FcConfigAppFontClear): Support passing NULL to
use default config.
2003-08-15 Carl Worth <cworth@isi.edu>
* src/fcxml.c (FcEditDestroy): Fix leak of FcEdit.

View File

@ -1727,6 +1727,13 @@ FcConfigAppFontAddDir (FcConfig *config,
void
FcConfigAppFontClear (FcConfig *config)
{
if (!config)
{
config = FcConfigGetCurrent ();
if (!config)
return;
}
FcConfigSetFonts (config, 0, FcSetApplication);
}