-
Notifications
You must be signed in to change notification settings - Fork 1.4k
FIX issue #7212: TMathText does not display with high value coordinates #7233
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
Conversation
Starting build on |
Starting build on |
Build failed on ROOT-ubuntu16/nortcxxmod. Errors:
|
Build failed on ROOT-performance-centos8-multicore/default. Errors:
|
Build failed on ROOT-fedora30/cxx14. Errors:
And 16 more |
Starting build on |
Build failed on ROOT-performance-centos8-multicore/default. Errors:
|
@phsft-bot build |
Starting build on |
Build failed on ROOT-performance-centos8-multicore/default. Errors:
|
Build failed on ROOT-fedora30/cxx14. Errors:
And 16 more |
Build failed on ROOT-ubuntu16/nortcxxmod. Errors:
|
@phsft-bot build |
Starting build on |
Build failed on ROOT-ubuntu16/nortcxxmod. Errors:
|
Build failed on ROOT-performance-centos8-multicore/default. Errors:
|
Build failed on ROOT-fedora31/noimt. Errors:
|
Build failed on ROOT-fedora30/cxx14. Errors:
And 10 more |
Starting build on |
Hi, |
Or one can use |
…ue coordinates (root-project#7233) * FIX issue root-project#7212: TMathText does not display with high value coordinates * Use INT_MAX * add missing include and fix typos * INT_MAX seems to be very machine dependant.
Fix issue #7212.
The TMathText method GetAlignPoint() computes the offset required to implement the text alignment. It does it using
integers (pixels). The value of kMaxPixel was arbitrary fixed to 32000.
In case of very high range in user coordinates the TMathText position was wrong. There is no reason to fix the kMaxPixel arbitrary to 32000. We can go to the maximal possible integer. That's what this fix is implementing. Doing that the issue #7212 is fixed.