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(AngleTool): fixed bug that was preventing text box to handle for 0 deg angle #1570

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ViniciusResende
Copy link
Contributor

  • Please check if the PR fulfills these requirements
  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
    This PR contains a bug fix. (Reproducible on OHIF V3 and V2)

  • What is the current behavior? (You can also link to an open issue here)
    The current behavior is that, if you create a Angle on OHIF currently, if this angle has exactly 0 degrees the text label will not be rendered.
    image

  • What is the new behavior (if this is a feature change)?
    Now the 0° label is shown.
    image

  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
    This PR shouldn't introduce any breaking change.

  • Other information:

…0 deg angle

Previously when creating an angle or even after setting it, we would observe a problem that, when
the angle had exactly 0 dregrees, it would not have the textbox rendered.
Copy link

codecov bot commented Jul 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 24.45%. Comparing base (dbf874f) to head (8365fd1).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1570      +/-   ##
==========================================
+ Coverage   23.86%   24.45%   +0.59%     
==========================================
  Files         287      287              
  Lines       10141    10145       +4     
  Branches     2082     2085       +3     
==========================================
+ Hits         2420     2481      +61     
+ Misses       6575     6529      -46     
+ Partials     1146     1135      -11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@igoroctaviano igoroctaviano self-requested a review July 16, 2024 10:14
Copy link
Contributor

@igoroctaviano igoroctaviano left a comment

Choose a reason for hiding this comment

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

LGTM

@igoroctaviano
Copy link
Contributor

@ViniciusResende could you replicate this issue using ohif v2 and cstools?

@ViniciusResende
Copy link
Contributor Author

@igoroctaviano yes, I could replicate both the error and the fix on OHIF v2. Although is not easy to replicate it, since the angle have to be exactly 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants