Skip to content

Commit

Permalink
Merge pull request #185 from dorsoft/ChartData.removeEntryByXIndex
Browse files Browse the repository at this point in the history
ChartData.removeEntryByXIndex removes the wrong entry #182
  • Loading branch information
danielgindi committed Jul 2, 2015
2 parents 855c5ff + 9914438 commit 54644d0
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 54644d0

Please sign in to comment.