X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fswfbbox.c;h=f0017aaba20507214c60ce0aa0e203dea6d037ce;hb=d4909516e699669d43cd9ebeab02d0d126fab851;hp=b8facd01abe99a9765974e4713b714e43e7c1ee8;hpb=ac7ab52d6bea63bca0692cac4c32b9a4456b34a7;p=swftools.git diff --git a/src/swfbbox.c b/src/swfbbox.c index b8facd0..f0017aa 100644 --- a/src/swfbbox.c +++ b/src/swfbbox.c @@ -240,8 +240,8 @@ static void textcallback(void*self, int*chars, int*xpos, int nr, int fontid, int SRECT newglyphbbox, glyphbbox = font->layout->bounds[chars[t]]; MATRIX m = bounds->m; - if(ch < font->numchars && font->glyph2ascii) { - ch = font->glyph2ascii[ch]; + if(chars[t] < font->numchars && font->glyph2ascii) { + ch = font->glyph2ascii[chars[t]]; } m.sx = (m.sx * fontsize) / 1024;