git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed gfxmatrix_multiply
[swftools.git]
/
lib
/
modules
/
swfrender.c
diff --git
a/lib/modules/swfrender.c
b/lib/modules/swfrender.c
index
994ac29
..
64dc696
100644
(file)
--- a/
lib/modules/swfrender.c
+++ b/
lib/modules/swfrender.c
@@
-1012,7
+1012,10
@@
static void textcallback(void*self, int*chars, int*xpos, int nr, int fontid, int
textcallbackblock_t * info = (textcallbackblock_t*)self;
font_t*font = 0;
int t;
textcallbackblock_t * info = (textcallbackblock_t*)self;
font_t*font = 0;
int t;
- if(!info->idtable[fontid].obj.font) {
+ if(info->idtable[fontid].type != font_type) {
+ fprintf(stderr, "ID %d is not a font\n", fontid);
+ return;
+ } else if(!info->idtable[fontid].obj.font) {
fprintf(stderr, "Font %d unknown\n", fontid);
return;
} else {
fprintf(stderr, "Font %d unknown\n", fontid);
return;
} else {