spakin / SimpInkScr

Simple Inkscape Scripting
https://inkscape.org/~pakin/%E2%98%85simple-inkscape-scripting
GNU General Public License v3.0
330 stars 32 forks source link

Reversing a path connects gaps #43

Closed jamesmckownbishop closed 2 years ago

jamesmckownbishop commented 2 years ago

I can create a path with a gap in it like so:

path_1 = path([Move(64, 64), Line(64, 128), Move(64, 196), Line(64, 256)])

If I reverse such a path, it no longer has a gap:

path_2 = path([Move(128, 64), Line(128, 128), Move(128, 196), Line(128, 256)])
path_2.reverse()

How can I reverse a path but preserve the gap?

Here is a screenshot of the result of those two snippets: path_and_reversed_path

Thank you for a sweet API!

spakin commented 2 years ago

Simple Inkscape Scripting is merely invoking the reverse method provided by Inkscape extension API, inkex, which implies that this is a bug in inkex. I submitted a bug report to Inkscape:

https://gitlab.com/inkscape/extensions/-/issues/445

As there's nothing more I can do myself, I'm closing this issue. Thanks for the bug report.