Closed spassignat closed 10 months ago
Can reproduce this in my dev env.
To me it looks like the issue is not "Z M" vs "M" , but "z Z M" vs "z M"
Or in other words, the problem is triggered by two "z" commands in a row?
You're probably right. I think in this case, it's easier to see with a debugger.
@spassignat Can you create a fzz for each contour? Two 'z' should not be a problem, actually that might already be fixed in Fritzing 1.0.0. I recently spend a lot of time investigating why my cutout would not work, and it turned out there was no "z" at all, just an "m" that indicated the next path. And most viewers seem to implicitly close the path when they see a new "m", I am not sure if that is according to the specification.
Hello,
I had some issues exporting a new board for production to gerber format. My cutouts where not exported, while they were coded like the ones I made for maybe 10 other boards. I looked at the circumstances of the error and I'm not sure this check is always necessary.
Today I had the error message, during export:
Looking at the code, this error message is produced because a 'z/Z' command is followed by a move 'm/M' command. But in some cases 'z' 'm' sequence is not a problem but in other cases, it is.
Non working code:
Working code:
The difference is (in the middle): Z M 13,1 => does not work M13,1 => works
So I think there is a little issue in the svg path parsing, but I can't find what. It would be better to debug, but I still can't make the project :cry:
So I let you have a look. Stephane