FcConfigAppFontClear: Support passing NULL to use default config.
This commit is contained in:
parent
34cd0514a2
commit
3ef32bcdc4
|
@ -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>
|
2003-08-15 Carl Worth <cworth@isi.edu>
|
||||||
|
|
||||||
* src/fcxml.c (FcEditDestroy): Fix leak of FcEdit.
|
* src/fcxml.c (FcEditDestroy): Fix leak of FcEdit.
|
||||||
|
|
|
@ -1727,6 +1727,13 @@ FcConfigAppFontAddDir (FcConfig *config,
|
||||||
void
|
void
|
||||||
FcConfigAppFontClear (FcConfig *config)
|
FcConfigAppFontClear (FcConfig *config)
|
||||||
{
|
{
|
||||||
|
if (!config)
|
||||||
|
{
|
||||||
|
config = FcConfigGetCurrent ();
|
||||||
|
if (!config)
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
FcConfigSetFonts (config, 0, FcSetApplication);
|
FcConfigSetFonts (config, 0, FcSetApplication);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue