Skip to content

Fix exception when dropping an association on a diagram #3383

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

Merged
merged 2 commits into from
Jul 14, 2024

Conversation

amolenaar
Copy link
Member

@amolenaar amolenaar commented Jul 10, 2024

PR Type

What kind of change does this PR introduce?

  • Bug fix
  • Feature
  • Chore (refactoring, formatting, local variables, other cleanup)
  • Documentation content changes

What is the current behavior?

Dropping an association causes an exception.

Issue Number: Fixes #3359

What is the new behavior?

No more exceptions.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

This happens due to how transactions are handled. The undo-manager
get's confused if more than one transaction is created at a time.
This way we can assure we always have an up-to-date line end.
@amolenaar amolenaar requested a review from danyeaw July 10, 2024 21:38
@github-actions github-actions bot added the python Pull requests that update Python code label Jul 10, 2024
Copy link
Member

@danyeaw danyeaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @amolenaar!

@danyeaw danyeaw added bug An issue in the application fix A fix for a bug and removed python Pull requests that update Python code bug An issue in the application labels Jul 14, 2024
@danyeaw danyeaw merged commit 4c78ad5 into main Jul 14, 2024
18 checks passed
@danyeaw danyeaw deleted the fix-association-drop branch July 14, 2024 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix A fix for a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Moving relationships in the model browser trigger
2 participants