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

Databrowser: Fix deleting traces with annotation. #2514

Merged
merged 1 commit into from
Jan 23, 2023
Merged

Conversation

kasemir
Copy link
Collaborator

@kasemir kasemir commented Jan 20, 2023

When deleting a trace with annotation, the annotation remained orphaned. It was on the screen, but would no longer snap to any trace. It would be saved in the *.plt file with -1 as the item index, and when later loading the file, there's an error dialog because of the invalid array index.

This fixed the main issue by removing the annotation when deleting the trace.

Note that there's no complete "undo": Undo will restore the trace, but for now not recover the annotation for the trace. That would be another thing to implement as time permits.

Whhen deleting a trace with annotation, the annotation remained
orphaned. It was on the screen, but would no longer snap to any trace.
It would be saved in the *.plt file with -1 as the item index, and when
later loading the file, there'd be an error dialog.

This fixed the main issue by removing the annotation when deleting the
trace.

Note that there's no complete "undo": Undo will restore the trace, but
for now not recover the annotation for the trace. That would be another
thing to implement as time permits.
@kasemir kasemir merged commit ed0109a into master Jan 23, 2023
@kasemir kasemir deleted the db_anno_fix branch January 23, 2023 13:44
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 this pull request may close these issues.

1 participant