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

Remove special case for 0 in DragValue default formatter #4639

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

YgorSouza
Copy link
Contributor

@YgorSouza
Copy link
Contributor Author

This special case was added in ebc2486#diff-3878bfa9f60333dd78982f3697643c6755ff8378f18b54fff03973c1eff5fcc8L159-R173, but I don't see any explanation for it, neither in the code nor in the commit message, and removing it doesn't seem to cause any problems, so I'm assuming it was a mistake. If there is a justification for it, I can change this PR to add a comment to the code instead, so no one questions it again.

Screencast.from.2024-06-07.20-04-15.mp4

@emilk emilk added egui style visuals and theming labels Jun 18, 2024
Copy link
Owner

@emilk emilk left a comment

Choose a reason for hiding this comment

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

Makes sense

@emilk emilk merged commit 3f53f17 into emilk:master Jun 18, 2024
20 of 21 checks passed
hacknus pushed a commit to hacknus/egui that referenced this pull request Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
egui style visuals and theming
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DragValue with min_decimals set to 1 formats 0.0 as 0
2 participants