git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fixes in swfstrings
[swftools.git]
/
src
/
swfstrings.c
diff --git
a/src/swfstrings.c
b/src/swfstrings.c
index
1bbd52f
..
f288276
100644
(file)
--- a/
src/swfstrings.c
+++ b/
src/swfstrings.c
@@
-151,7
+151,7
@@
void textcallback(void*self, int*glyphs, int*advance, int nr, int fontid, int fo
unsigned char a;
int advance = 0;
- if(font>=0) {
+ if(font) {
if(glyphs[t]<0 || glyphs[t] >= font->numchars /*glyph is not in range*/
|| !font->glyph2ascii /* font has ascii<->glyph mapping */
) a = glyphs[t];