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

Transient layers are not activated when diagram is reopened #431

Open
peransin-obeo opened this issue Jul 12, 2024 · 0 comments
Open

Transient layers are not activated when diagram is reopened #431

peransin-obeo opened this issue Jul 12, 2024 · 0 comments
Labels
component: diagrams type: bug Something isn't working

Comments

@peransin-obeo
Copy link
Contributor

peransin-obeo commented Jul 12, 2024

When opening an existing diagram for the first time after loading a session, transient layer is not activated.

This is not conform with documentation:
https://eclipse.dev/sirius/doc/specifier/diagrams/Diagrams.html#Transientlayer

The behavior occurs while executing:

The 'transientLayersToActivate' list contains the same layers twice.
As activation is performed by a toggling command, layer is activated the desactivated.

The simplest fix is to check the getInitialActiveLayers method does not provide the same layer twice by adding a containment verification in this loop:

Tested in version 7.1.0

@pcdavid pcdavid added type: bug Something isn't working component: diagrams labels Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: diagrams type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants