changeset 34822:93f079e4e579

Add result argument to second FcFontMatch argument, just like for the first. Fixes a possible assertion in fontconfig.
author reimar
date Wed, 16 May 2012 21:30:06 +0000
parents 747608fd4dcc
children 2960cd0eef6f
files sub/font_load_ft.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sub/font_load_ft.c	Wed May 16 14:27:57 2012 +0000
+++ b/sub/font_load_ft.c	Wed May 16 21:30:06 2012 +0000
@@ -1159,7 +1159,7 @@
                 FcConfigSubstitute(0, fc_pattern, FcMatchPattern);
                 FcDefaultSubstitute(fc_pattern);
                 fc_pattern2 = fc_pattern;
-                fc_pattern = FcFontMatch(0, fc_pattern, 0);
+                fc_pattern = FcFontMatch(0, fc_pattern, &result);
                 FcPatternDestroy(fc_pattern2);
             }
             // s doesn't need to be freed according to fontconfig docs