X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=src%2Ffcmatch.c;h=d688c98b9eaad659f8cb19f0dc1d070b6f0a9ba2;hb=09f9f6f62ac94f7b1a6df649a00c64f78ab132f5;hp=7e3353b3d42e610b1e5ba6a387eee20aeb08de76;hpb=c02886485b293179e8492cad9a34eb431dd4bfc9;p=fontconfig.git diff --git a/src/fcmatch.c b/src/fcmatch.c index 7e3353b..d688c98 100644 --- a/src/fcmatch.c +++ b/src/fcmatch.c @@ -313,7 +313,7 @@ FcCompareValueList (FcObject object, j = 0; for (v1 = v1orig; v1; v1 = FcValueListNext(v1)) { - for (v2 = v1orig; v2; v2 = FcValueListNext(v2)) + for (v2 = v2orig; v2; v2 = FcValueListNext(v2)) { v = (match->compare) (&v1->value, &v2->value); if (v < 0) @@ -608,7 +608,7 @@ FcSortWalk (FcSortNode **n, int nnode, FcFontSet *fs, FcCharSet **cs, FcBool tri } FcPatternReference (node->pattern); - if (FcDebug () & FC_DBG_MATCH) + if (FcDebug () & FC_DBG_MATCHV) { printf ("Add "); FcPatternPrint (node->pattern); @@ -788,6 +788,11 @@ FcFontSetSort (FcConfig *config, free (nodes); + if (FcDebug() & FC_DBG_MATCH) + { + printf ("First font "); + FcPatternPrint (ret->fonts[0]); + } return ret; bail2: