Skip to content

Commit

Permalink
ChartData.removeEntryByXIndex removes the wrong entry ChartsOrg#182
Browse files Browse the repository at this point in the history
  • Loading branch information
Dor Alon authored and Dor Alon committed Jul 2, 2015
1 parent 855c5ff commit 9914438
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Charts/Classes/Data/ChartData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,11 @@ public class ChartData: NSObject

var entry = _dataSets[dataSetIndex].entryForXIndex(xIndex)

if (entry?.xIndex != xIndex)
{
return false
}

return removeEntry(entry, dataSetIndex: dataSetIndex)
}

Expand Down

0 comments on commit 9914438

Please sign in to comment.