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 masked image bug
[swftools.git]
/
lib
/
gfxtools.c
diff --git
a/lib/gfxtools.c
b/lib/gfxtools.c
index
7772273
..
12717ea
100644
(file)
--- a/
lib/gfxtools.c
+++ b/
lib/gfxtools.c
@@
-234,7
+234,7
@@
void gfxtool_draw_dashed_line(gfxdrawer_t*d, gfxline_t*line, float*r, float phas
return;
}
if(r[0]<0 || phase<0) {
return;
}
if(r[0]<0 || phase<0) {
- fprintf(stderr, "gfxtool: invalid (negative) dashes: %f, phase=%f", r[0], phase);
+ fprintf(stderr, "gfxtool: invalid (negative) dashes: %f, phase=%f\n", r[0], phase);
return;
}
return;
}
@@
-1038,7
+1038,7
@@
gfxline_t* gfxline_restitch(gfxline_t*line)
gfxline_t*prev=0;
while(line) {
gfxline_t*next = line->next;
gfxline_t*prev=0;
while(line) {
gfxline_t*next = line->next;
- if(line->type == gfx_moveTo) {
+ if(line->type == gfx_moveTo && (line->next && line->next->type != gfx_moveTo)) {
gfxpoint_t xy = {line->x, line->y};
dict_put(ff, &xy, line);
prev = line;
gfxpoint_t xy = {line->x, line->y};
dict_put(ff, &xy, line);
prev = line;
@@
-1178,5
+1178,6
@@
void gfxparams_free(gfxparams_t*params)
free(p);
p = next;
}
free(p);
p = next;
}
+ free(params);
}
}