From c6103dfb22de0664a6ab164d90d6959551e301c5 Mon Sep 17 00:00:00 2001 From: Patrick Lam Date: Tue, 6 Dec 2005 18:57:43 +0000 Subject: [PATCH] Don't assign types to user object names. --- ChangeLog | 5 +++++ src/fcname.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index a367294..64c37cc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-12-05 Patrick Lam + * src/fcname.c (FcNameGetObjectType): + + Don't assign types to user object names. + 2005-12-05 Patrick Lam * src/fcpat.c (FcValueDestroy, FcValueListDestroy, FcStrHashed): diff --git a/src/fcname.c b/src/fcname.c index fc3dbd4..d710035 100644 --- a/src/fcname.c +++ b/src/fcname.c @@ -155,6 +155,9 @@ FcNameGetObjectType (const char *object) for (l = _FcObjectTypes; l; l = l->next) { + if (l == (FcObjectTypeList*)_FcUserObjectNames) + continue; + for (i = 0; i < l->ntypes; i++) { t = &l->types[i]; -- 2.39.5