cmonr / Eagle-ULPs

Scripts used in Eagle CAD
anomalousmaker.com
110 stars 22 forks source link

Fixed vertical and horizontal line commands #10

Closed hadron137 closed 5 years ago

hadron137 commented 5 years ago

When the ULP encountered a 'h' or 'v' command, it would draw incorrectly. This was fixed by re-initiating tmp_coords[0] and tmp_coords[1] to zero at the beginning of the while loop.

I also removed the line: sprintf(svg_pts[i], "%s,%s", svg_pts[i], svg_pts[i+1]); from two places. this seems to be a patch for previous SVG formats that used a space instead of a comma for M x.xxx y.yyy

hadron137 commented 5 years ago

Still some bugs. I'll resubmit later...