From: Evgeniy Stepanov Date: Sat, 24 May 2008 23:09:17 +0000 (-0700) Subject: Fix index/offset for 'decorative' matcher. Bug 15890. X-Git-Tag: 2.5.93~5 X-Git-Url: https://git.wh0rd.org/?p=fontconfig.git;a=commitdiff_plain;h=b808204023ab47eb06dc520665eb7a0473320a9b Fix index/offset for 'decorative' matcher. Bug 15890. It seems indices in _FcMatchers array are slightly mixed up, MATCH_DECORATIVE should be 10, not 11. And MATCH_RASTERIZER_INDEX should be 13, not 12, right? --- diff --git a/src/fcmatch.c b/src/fcmatch.c index f041052..f104e05 100644 --- a/src/fcmatch.c +++ b/src/fcmatch.c @@ -226,17 +226,16 @@ static FcMatcher _FcMatchers [] = { #define MATCH_WIDTH_INDEX 10 { FC_DECORATIVE_OBJECT, FcCompareBool, 11, 11 }, -#define MATCH_DECORATIVE 11 -#define MATCH_DECORATIVE_INDEX 12 +#define MATCH_DECORATIVE 10 +#define MATCH_DECORATIVE_INDEX 11 { FC_ANTIALIAS_OBJECT, FcCompareBool, 12, 12 }, - #define MATCH_ANTIALIAS 11 #define MATCH_ANTIALIAS_INDEX 12 { FC_RASTERIZER_OBJECT, FcCompareString, 13, 13 }, #define MATCH_RASTERIZER 12 -#define MATCH_RASTERIZER_INDEX 12 +#define MATCH_RASTERIZER_INDEX 13 { FC_OUTLINE_OBJECT, FcCompareBool, 14, 14 }, #define MATCH_OUTLINE 13