git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac7ab52
)
fixed potential segfault.
author
kramm
<kramm>
Sun, 5 Sep 2004 15:57:57 +0000
(15:57 +0000)
committer
kramm
<kramm>
Sun, 5 Sep 2004 15:57:57 +0000
(15:57 +0000)
src/swfbbox.c
patch
|
blob
|
history
diff --git
a/src/swfbbox.c
b/src/swfbbox.c
index
b8facd0
..
f0017aa
100644
(file)
--- 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;