Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[filter_by_length_area] #137

Open
vmario89 opened this issue Nov 27, 2023 · 0 comments
Open

[filter_by_length_area] #137

vmario89 opened this issue Nov 27, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@vmario89
Copy link
Contributor

vmario89 commented Nov 27, 2023

Error is thrown for following simple example file
Selection_001
Selection_002

file:
sample

[['M', [365.34319, 430.34589]], ['L', [378.57235, 430.34589]]]
[['M', [378.57235, 440.92923]], ['M', [365.34319, 430.34589]]]
Traceback (most recent call last):
  File "/home/tomate/.config/inkscape/extensions/mightyscape-1.2/extensions/fablabchemnitz/filter_by_length_area/filter_by_length_area.py", line 275, in <module>
    FilterByLengthArea().run()
  File "/usr/share/inkscape/extensions/inkex/base.py", line 250, in run
    self.save_raw(self.effect())
                  ^^^^^^^^^^^^^
  File "/home/tomate/.config/inkscape/extensions/mightyscape-1.2/extensions/fablabchemnitz/filter_by_length_area/filter_by_length_area.py", line 134, in effect
    elements.append(self.breakContours(element, None))
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/tomate/.config/inkscape/extensions/mightyscape-1.2/extensions/fablabchemnitz/filter_by_length_area/filter_by_length_area.py", line 96, in breakContours
    if len(subpath) > 1 and csp[0][0] != csp[0][1]: #avoids pointy paths like M "31.4794 57.6024 Z"
                                         ~~~~~~^^^
IndexError: list index out of range
@vmario89 vmario89 added the bug Something isn't working label Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant