changeset 30004:dabd6ed79efe

The fontconfig check added in r30044 wasn't safe. This makes it more robust.
author adrian
date Wed, 16 Dec 2009 22:36:17 +0000
parents e709ce5b5d34
children 835d6e5e5de0
files libvo/font_load_ft.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/font_load_ft.c	Wed Dec 16 11:59:53 2009 +0000
+++ b/libvo/font_load_ft.c	Wed Dec 16 22:36:17 2009 +0000
@@ -1164,7 +1164,7 @@
 	FcDefaultSubstitute(fc_pattern);
 	fc_pattern2 = fc_pattern;
 	fc_pattern = FcFontMatch(0, fc_pattern, &result);
-	if (result == FcResultMatch) {
+	if (fc_pattern) {
 	FcPatternDestroy(fc_pattern2);
 	FcPatternGetBool(fc_pattern, FC_SCALABLE, 0, &scalable);
 	if (scalable != FcTrue) {