Because we hacked FcPatternGet, we don't really need to expand the filename

again in FcPatternGetString.
This commit is contained in:
Patrick Lam 2006-03-05 15:33:46 +00:00
parent 618adbaf7b
commit 9226e04c69
2 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2006-03-05 Patrick Lam <plam@mit.edu>
* src/fcpat.c (FcPatternGetString):
Because we hacked FcPatternGet, we don't really need to expand the
filename again in FcPatternGetString.
2006-03-05 Patrick Lam <plam@mit.edu> 2006-03-05 Patrick Lam <plam@mit.edu>
* src/fcpat.c (FcPatternGetString, FcPatternGet): * src/fcpat.c (FcPatternGetString, FcPatternGet):

View File

@ -1214,9 +1214,6 @@ FcPatternGetString (const FcPattern *p, const char *object, int id, FcChar8 ** s
if (v.type != FcTypeString) if (v.type != FcTypeString)
return FcResultTypeMismatch; return FcResultTypeMismatch;
if (FcObjectToPtr(object) == FcObjectToPtr(FC_FILE))
return FcPatternGetFile (p, object, id, s);
*s = (FcChar8 *) v.u.s; *s = (FcChar8 *) v.u.s;
return FcResultMatch; return FcResultMatch;
} }