Closed aklomp closed 3 years ago
Thanks, I added the change in 9a40720.
PS: Feel free to directly open a PR in the future.
Thanks. The reason why I didn't make this a PR is because I hit this issue during my first time using this software, and didn't want to give the impression that I fully understood the effects of this change inside an unfamiliar codebase. I'll push a PR next time.
Found and fixed this issue when trying to render a board that is partly drawn using negative coordinates.
I'm relatively new to KiCAD, and couldn't figure out how to move the coordinate origin to the center of the workspace. I needed to draw a symmetrical board and didn't want to complicate the math, so my hack was to draw my board relative to the document origin in the top left. The resulting board uses negative coordinates for half of its geometry. Running PcbNew (version 0.6.0, from the Arch repo) on this board produces the following error trace:
I traced this down to the regexp in
class SvgPathItem
that tries to split the given SVG path. It doesn't handle the following input correctly:The fix is trivial:
Now it works.