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

if _max equal to _min cause crash #32

Open
zenyuhao opened this issue Jun 15, 2016 · 0 comments
Open

if _max equal to _min cause crash #32

zenyuhao opened this issue Jun 15, 2016 · 0 comments

Comments

@zenyuhao
Copy link

- (CGFloat)minVerticalBound
{
    return MIN(_min, 0);
}

- (CGFloat)maxVerticalBound
{
    return MAX(_max, 0);
}

if _max =0 and _min = 0 then minVerticalBound and maxVerticalBound will be 0

CGFloat scale = _axisHeight / (maxBound - minBound);

this will cause a crash

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