Skip to content

Please fix divide by 0 #45

Open
Open
@kthacker7

Description

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.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions