Skip to content

Commit

Permalink
Fixed a crash when removing an entry (Fixed issue #203)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgindi committed Jul 16, 2015
1 parent a2d7188 commit 5cf5b83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Charts/Classes/Data/ChartDataSet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public class ChartDataSet: NSObject

var endValue : Int

if end == 0
if end == 0 || end >= _yVals.count
{
endValue = _yVals.count - 1
}
Expand Down

0 comments on commit 5cf5b83

Please sign in to comment.