Skip to content

Commit

Permalink
Fix from original library
Browse files Browse the repository at this point in the history
Added a check against NaN, fix ChartsOrg#1737
  • Loading branch information
Jean Mouton committed Mar 2, 2017
1 parent 1d0c978 commit 81041d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Charts/Utils/ChartUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ open class ChartUtils

let i = roundToNextSignificant(number: Double(number))

if i.isInfinite
if i.isInfinite || i.isNaN
{
return 0
}
Expand Down

0 comments on commit 81041d4

Please sign in to comment.