Closed rjwills28 closed 3 years ago
@kasemir I took a look at the Phoebus implementation and found a few edge cases where the annotations can get lost after hiding and showing a trace. If you hide an existing trace (with annotations), then add a brand new trace and then show the previously hidden one, it re-appears with out its annotation. Also I noticed that the Edit Annotation window shows all of the annotations including those for the traces that are hidden.
I think both of these issues should be fixed in this PR for CS-Studio.
Thanks for checking that! I agree on the issue where annotation is lost when adding new trace, will have to fix that in the phoebus version. As for the annotation editor, I think it's a feature to allow editing all annotations, including those for hidden traces, and those which are currently positioned off screen. If nothing else, it allows you to delete them.
This is the same fix described in PR https://github.com/ControlSystemStudio/cs-studio/pull/2683. There was an issue with the rebase required to bring the branch up to date with the latest code style fixes as so I created a new branch and hence new PR.