diff --git a/c/libs/xft.c b/c/libs/xft.c index 837b4cc..11df351 100644 --- a/c/libs/xft.c +++ b/c/libs/xft.c @@ -62,13 +62,13 @@ s48_value scx_XftPatternGet(s48_value sxp, s48_value sobj, s48_value sid) tbl = lookup_pattern_property_by_id(obj); rc = XftPatternGet(p, tbl->name, i, &v); - if ((rc != XftResultMatch) || (rc != XftResultNoMatch)) + if (rc != XftResultMatch) { rl = s48_list_2(s48_enter_integer(rc), S48_UNSPECIFIC); S48_GC_UNPROTECT(); return rl; } - + switch (tbl->type) { case SCX_XFT_STRING: rv = s48_enter_string(v.u.s);