Commit 6540d5a9 authored by pokergaming's avatar pokergaming
Browse files

fixed bbox calculation for implicit line commands (m 0 1 2 3 etc.)

parent 12384e14
...@@ -2807,8 +2807,8 @@ static void svg_getpathrect(t_svg *x, t_glist *glist, ...@@ -2807,8 +2807,8 @@ static void svg_getpathrect(t_svg *x, t_glist *glist,
yy = *ia; yy = *ia;
break; break;
case 'M': case 'M':
mx = *(ia+(x->x_nargs_per_cmd[i] - 2)); mx = *(ia);
my = *(ia+(x->x_nargs_per_cmd[i] - 1)); my = *(ia+1);
default: default:
xx = *(ia+(x->x_nargs_per_cmd[i] - 2)); xx = *(ia+(x->x_nargs_per_cmd[i] - 2));
yy = *(ia+(x->x_nargs_per_cmd[i] - 1)); yy = *(ia+(x->x_nargs_per_cmd[i] - 1));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment