]> git.wh0rd.org - fontconfig.git/blobdiff - src/fccfg.c
Add ref counting to font config patterns so that FcFontSort return values
[fontconfig.git] / src / fccfg.c
index e073b85098746a9ad880fe7cb8ca6baa33a61bfa..66bf501aacc5116db712c3b6582659ddda5f2dbb 100644 (file)
@@ -1129,6 +1129,10 @@ FcConfigSubstitute (FcConfig     *config,
            st[i].value = FcConfigMatchValueList (p, t, st[i].elt->values);
            if (!st[i].value)
                break;
+           if (t->qual == FcQualFirst && st[i].value != st[i].elt->values)
+               break;
+           if (t->qual == FcQualNotFirst && st[i].value == st[i].elt->values)
+               break;
        }
        if (t)
        {