From: Keith Packard Date: Fri, 1 Sep 2006 09:22:59 +0000 (-0700) Subject: Fontset pattern references are relative to fontset, not array. X-Git-Tag: 2.3.96~23 X-Git-Url: https://git.wh0rd.org/?p=fontconfig.git;a=commitdiff_plain;h=09bd9ae2be032efb05a8be7bae584fa18756d951 Fontset pattern references are relative to fontset, not array. Within a fontset, the patterns are stored as pointers in an array. When stored as offsets, the offsets are relative to the fontset object itself, not the base of the array of pointers. --- diff --git a/src/fcint.h b/src/fcint.h index 42aa0eb..78d17e7 100644 --- a/src/fcint.h +++ b/src/fcint.h @@ -201,7 +201,7 @@ struct _FcPattern { #define FcFontSetFonts(fs) FcPointerMember(fs,fonts,FcPattern *) #define FcFontSetFont(fs,i) (FcIsEncodedOffset((fs)->fonts) ? \ - FcEncodedOffsetToPtr(FcFontSetFonts(fs), \ + FcEncodedOffsetToPtr(fs, \ FcFontSetFonts(fs)[i], \ FcPattern) : \ fs->fonts[i])