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

Crash when removing a point #162

Closed
scottix opened this issue Dec 17, 2023 · 0 comments · Fixed by #163
Closed

Crash when removing a point #162

scottix opened this issue Dec 17, 2023 · 0 comments · Fixed by #163

Comments

@scottix
Copy link
Collaborator

scottix commented Dec 17, 2023

Seems there is a crash when removing a point

Traceback (most recent call last):
File "~/anylabel/venv/lib/python3.10/site-packages/anylabeling/views/labeling/label_widget.py", line 2400, in remove_selected_point
if not self.canvas.h_hape.points:
AttributeError: 'NoneType' object has no attribute 'points'
Aborted

Fix

        if self.canvas.h_hape is not None and not self.canvas.h_hape.points:
scottix added a commit to scottix/anylabeling that referenced this issue Dec 17, 2023
This commit fixes an issue when the user drags a point off the canvas then hits the backspace key to remove the selected point.

Fixes vietanhdev#162
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant