summaryrefslogtreecommitdiff
path: root/src/fcmatch.c
diff options
context:
space:
mode:
authorPatrick Lam <plam@MIT.EDU>2006-02-10 19:40:11 +0000
committerPatrick Lam <plam@MIT.EDU>2006-02-10 19:40:11 +0000
commitf11a184104a57c0d68afde8e7458c7b8473b6671 (patch)
treed2817895a1e9617e34459cabaaeacca9e87a3078 /src/fcmatch.c
parent879af7060b24c6d57eb29cf6cfe2f6bb04589261 (diff)
Don't kill fonts because they don't declare an element that's being matched
on. reviewed by: plam
Diffstat (limited to 'src/fcmatch.c')
-rw-r--r--src/fcmatch.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fcmatch.c b/src/fcmatch.c
index cf702c65..30336ffd 100644
--- a/src/fcmatch.c
+++ b/src/fcmatch.c
@@ -673,6 +673,10 @@ FcFontSetMatch (FcConfig *config,
}
}
+ /* We had no matching, just try the next one */
+ if (score == 1e99)
+ continue;
+
/* If there's a previous champion, and current score
* beats previous best score, on this element, then
* knock out the previous champion and anything