Skip to content

Commit

Permalink
Avoid trying to draw cubic fill when there's no points
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgindi committed Oct 1, 2015
1 parent ae10a9f commit 5b1b98f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,9 @@ protected void drawCubic(Canvas c, LineDataSet dataSet, List<Entry> entries) {
protected void drawCubicFill(LineDataSet dataSet, Path spline, Transformer trans,
int from, int to) {

if (to - from <= 1)
return;

float fillMin = dataSet.getFillFormatter()
.getFillLinePosition(dataSet, mChart);

Expand Down

0 comments on commit 5b1b98f

Please sign in to comment.