-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[gui] Some fixes to TGNumberEntry #18435
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
|
Thanks a lot for this initiative. If you want a reproducer to test against: https://igit.ific.uv.es/ferhue/pulse-surfer |
Test Results 19 files 19 suites 3d 22h 21m 45s ⏱️ Results for commit fc16914. ♻️ This comment has been updated with latest results. |
|
I tested on @ferdymercury 's reproducer and it seems to work fine. |
ferdymercury
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks! Maybe just add a small doxygen documentation on what CopyAndEliminate is doing.
dpiparo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for this. LGTM.
- fix some broken logic - simplify some functions - improve safety by adding bounds checks where appropriate
|
@silverweed I am seeing a regression in TGNumberEntry, that might be connected with this PR. In 6.36.00 then click on Clipping, Plane, numbers look fine. In master: both in first tab and in Clipping, Plane, numbers look weird. |
An attempt to fix and improve some old code in
TGNumberEntryby:This is not an exhaustive pass on the file, as there are many other places that could use a pass or a rewrite. However it should address some of the more glaring safety concerns - particularly, it removes all uses of
strcpyand the coverity annotations.I haven't tested this code yet so I'm opening this as a draft PR. Feel free to comment on it already.
Checklist:
This PR fixes #17334