I'm using the latest subversion trunk (rev. 6100).
In my svg file I declared a viewBox with x and y coordinates, like 'viewBox="50 50 150 150"'.
It seems that these coordinates were not used to convert the svg, only the width and height of the viewBox.
After debugging the code I found the solution in the file 'coders\svg.c'
At line 2167 change
Code: Select all
double
sx,
sy;
Code: Select all
double
sx,
sy,
tx,
ty;
Code: Select all
(void) FormatLocaleFile(svg_info->file,"affine %g 0 0 %g 0.0 0.0\n",
sx,sy);
Code: Select all
tx= svg_info->view_box.x != 0.0 ? (double) sx*-svg_info->view_box.x : 0.0;
ty= svg_info->view_box.y != 0.0 ? (double) sy*-svg_info->view_box.y : 0.0;
(void) FormatLocaleFile(svg_info->file,"affine %g 0 0 %g %g %g\n",
sx,sy,tx,ty);
Alex