X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fgfxtools.c;h=f754379e9e9ce4500168f657f1e3b47768ffea67;hp=c9b81532cf61729a0510680ba779e05dd31a0db8;hb=7be8967177293d3a0b4b8a286f16b740933ac583;hpb=1ec6bb9a0eb63847e814b987014b2f1afcb7def6 diff --git a/lib/gfxtools.c b/lib/gfxtools.c index c9b8153..f754379 100644 --- a/lib/gfxtools.c +++ b/lib/gfxtools.c @@ -86,7 +86,8 @@ static void linedraw_splineTo(gfxdrawer_t*d, gfxcoord_t sx, gfxcoord_t sy, gfxco if(!i->start) { fprintf(stderr, "Error: drawing startpoint is a spline\n"); - linedraw_moveTo(d, 0, 0); + linedraw_moveTo(d, x, y); + return; } l->type = gfx_splineTo;