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

Fix drawing vertical or horizontal line segments in Shapes layer #5895

Merged
merged 2 commits into from Jun 7, 2023

Conversation

brisvag
Copy link
Contributor

@brisvag brisvag commented Jun 1, 2023

Closes #4538.

In #4538, @psobolewskiPhD reported that something prevented drawing of Shapes line segments that were either perfectly vertical or perfectly horizontal. This was caused by faulty logic meant to prevent drawing segments that are too small. This changes the logic to prevent changing a scale to 0, which fixes the bug. It also renames some variables to make the logic easier to follow.

@psobolewskiPhD psobolewskiPhD added the bugfix PR with bugfix label Jun 1, 2023
@psobolewskiPhD psobolewskiPhD added this to the 0.4.18 milestone Jun 1, 2023
@psobolewskiPhD psobolewskiPhD self-requested a review June 1, 2023 15:43
@brisvag brisvag added the ready to merge Last chance for comments! Will be merged in ~24h label Jun 6, 2023
@jni jni changed the title Fix vertical/horizontal segments Fix drawing vertical or horizontal line segments in Shapes layer Jun 7, 2023
@jni jni merged commit 6d06ddf into napari:main Jun 7, 2023
28 checks passed
@jni jni removed the ready to merge Last chance for comments! Will be merged in ~24h label Jun 7, 2023
@Czaki Czaki mentioned this pull request Jun 7, 2023
Czaki pushed a commit that referenced this pull request Jun 19, 2023
Closes #4538.

In #4538, @psobolewskiPhD reported that *something* prevented drawing of
Shapes line segments that were either perfectly vertical or perfectly
horizontal. This was caused by faulty logic meant to prevent drawing
segments that are *too small*. This changes the logic to prevent
changing a scale to 0, which fixes the bug. It also renames some
variables to make the logic easier to follow.
Czaki pushed a commit that referenced this pull request Jun 21, 2023
Closes #4538.

In #4538, @psobolewskiPhD reported that *something* prevented drawing of
Shapes line segments that were either perfectly vertical or perfectly
horizontal. This was caused by faulty logic meant to prevent drawing
segments that are *too small*. This changes the logic to prevent
changing a scale to 0, which fixes the bug. It also renames some
variables to make the logic easier to follow.
Czaki pushed a commit that referenced this pull request Jun 21, 2023
Closes #4538.

In #4538, @psobolewskiPhD reported that *something* prevented drawing of
Shapes line segments that were either perfectly vertical or perfectly
horizontal. This was caused by faulty logic meant to prevent drawing
segments that are *too small*. This changes the logic to prevent
changing a scale to 0, which fixes the bug. It also renames some
variables to make the logic easier to follow.
Czaki pushed a commit that referenced this pull request Jun 21, 2023
Closes #4538.

In #4538, @psobolewskiPhD reported that *something* prevented drawing of
Shapes line segments that were either perfectly vertical or perfectly
horizontal. This was caused by faulty logic meant to prevent drawing
segments that are *too small*. This changes the logic to prevent
changing a scale to 0, which fixes the bug. It also renames some
variables to make the logic easier to follow.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix PR with bugfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Shapes Layer: Unable to draw horizontal/verticle line
3 participants