[Commit] fontconfig/src fccfg.c,1.41,1.42

Manish Singh commit at keithp.com
Sun Aug 31 23:11:20 PDT 2003


Committed by: yosh

Update of /local/src/CVS/fontconfig/src
In directory home.keithp.com:/tmp/cvs-serv23488/src

Modified Files:
	fccfg.c 
Log Message:
FcConfigAppFontClear: Support passing NULL to use default config.


Index: fccfg.c
===================================================================
RCS file: /local/src/CVS/fontconfig/src/fccfg.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -d -r1.41 -r1.42
--- fccfg.c	15 Aug 2003 19:45:20 -0000	1.41
+++ fccfg.c	1 Sep 2003 05:11:17 -0000	1.42
@@ -1727,6 +1727,13 @@
 void
 FcConfigAppFontClear (FcConfig	    *config)
 {
+    if (!config)
+    {
+	config = FcConfigGetCurrent ();
+	if (!config)
+	    return;
+    }
+
     FcConfigSetFonts (config, 0, FcSetApplication);
 }
 




More information about the Commit mailing list