X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fswfstrings.c;h=f288276687286584da453252998a441ed0001169;hb=445a7e494abd92243be4f21028c609beb99e4322;hp=1bbd52f76931a884c6aa31bf1adf5910412e17e1;hpb=5c336b4f7017fb121fc2cbe2a02c1fa56986b560;p=swftools.git diff --git a/src/swfstrings.c b/src/swfstrings.c index 1bbd52f..f288276 100644 --- 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];