From: Patrick Lam Date: Tue, 6 Dec 2005 18:57:43 +0000 (+0000) Subject: Don't assign types to user object names. X-Git-Tag: fc-2_3_93~8 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c6103dfb22de0664a6ab164d90d6959551e301c5;p=fontconfig.git Don't assign types to user object names. --- 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];