]> git.wh0rd.org Git - fontconfig.git/commitdiff
Fix index/offset for 'decorative' matcher. Bug 15890.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Sat, 24 May 2008 23:09:17 +0000 (16:09 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 24 May 2008 23:09:17 +0000 (16:09 -0700)
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?

src/fcmatch.c

index f0410528e4c0edc42b8710a6dd5801ac243cc2d9..f104e0540b13fbb7cc8968090dc06cddbb8aab1b 100644 (file)
@@ -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