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

BUG: Fix unrelated matrix elements overwritten in transform editor #7594

Merged
merged 1 commit into from Feb 20, 2024

Conversation

lassoan
Copy link
Contributor

@lassoan lassoan commented Feb 20, 2024

This is a fix for the transformation matrix editing glitch that @RafaelPalomar demonstrated during the weekly developer meeting.

In transforms module, when linear transformation matrix values were edited using spinboxes and then by directly editing the matrix, the value that was previously edited in the spinbox got overwritten by the new value.

The issue was that a single slot was used for all signals coming from all sliders and in the slot implementation the active focus was used to determine which axis should be updated. Fixed by using a separate slot for each axis. This way we don't rely on the GUI widget focus, which may go through complex transitions during transform editing using various widgets.

In transforms module, when linear transformation matrix values were edited using spinboxes and then by directly editing the matrix, the value that was previously edited in the spinbox got overwritten by the new value.

The issue was that a single slot was used for all signals coming from all sliders and in the slot implementation the active focus was used to determine which axis should be updated.
Fixed by using a separate slot for each axis. This way we don't rely on the GUI widget focus, which may go through complex transitions during transform editing using various widgets.
@lassoan lassoan added this to the Slicer 5.7 milestone Feb 20, 2024
@lassoan lassoan requested a review from pieper February 20, 2024 17:46
@lassoan lassoan self-assigned this Feb 20, 2024
Copy link
Member

@pieper pieper left a comment

Choose a reason for hiding this comment

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

Thanks for the quick fix 👍

@pieper pieper enabled auto-merge (rebase) February 20, 2024 18:01
@RafaelPalomar
Copy link
Contributor

Thank you very much, @lassoan. Super quick!

@pieper pieper merged commit 325fdbd into Slicer:main Feb 20, 2024
6 checks passed
@jcfr jcfr added the backport:5.x Identify pull request expected to be backported to the current 5.x release branch. label Apr 3, 2024
@jcfr jcfr removed the backport:5.x Identify pull request expected to be backported to the current 5.x release branch. label Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants