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

Please fix divide by 0 #45

Open
kthacker7 opened this issue Aug 31, 2016 · 0 comments
Open

Please fix divide by 0 #45

kthacker7 opened this issue Aug 31, 2016 · 0 comments

Comments

@kthacker7
Copy link

In TTRangeSlider.m, line 315, you have:

if (self.enableStep && self.step>=0.0f){
_selectedMinimum = roundf(self.selectedMinimum/self.step)_self.step;
_selectedMaximum = roundf(self.selectedMaximum/self.step)_self.step;
}

If self.step == 0.0, then there is a divide by zero setting selectMinimum and selectMaximum to NaN.
Hope this helped.

redcapua added a commit to redcapua/TTRangeSlider that referenced this issue Dec 5, 2018
a) fixing issue 'divide by zero'
b) added setters for enableStep & step
c) refresh procedure is calling after values updated
@redcapua redcapua mentioned this issue Dec 5, 2018
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

No branches or pull requests

1 participant