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 crash in slider control if range is zero #10315

Merged
merged 1 commit into from
Aug 21, 2016

Conversation

garbear
Copy link
Member

@garbear garbear commented Aug 20, 2016

If a slider control is created with no start or end values, they default to zero. The control's proportion is a percentage of its range, so a divide by zero occurs.

This change returns a proportion of 0.0 if the range is zero.

If a slider control is created with no start or end values, they default to
zero. The control's proportion is a percentage of its range, so a divide by
zero occurs.

This change returns a proportion of 0.0 if the range is zero.
@garbear
Copy link
Member Author

garbear commented Aug 21, 2016

jenkins build this please

@garbear garbear merged commit d3b5c09 into xbmc:master Aug 21, 2016
@garbear garbear deleted the fix-divide-by-zero branch August 26, 2016 16:18
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.

None yet

2 participants