Skip to content

Commit

Permalink
getLabel is not needed here
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgindi committed May 21, 2015
1 parent 1b3daa1 commit b0291c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Charts/Classes/Renderers/ChartLegendRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -439,14 +439,14 @@ public class ChartLegendRenderer: ChartRendererBase

if (!wasStacked)
{
drawLabel(context, x: x, y: posY - _legend.textHeightMax / 2.0, label: _legend.getLabel(i)!, font: labelFont, textColor: labelTextColor);
drawLabel(context, x: x, y: posY - _legend.textHeightMax / 2.0, label: labels[i]!, font: labelFont, textColor: labelTextColor);

posY += textDrop;
}
else
{
posY += _legend.textHeightMax * 3.0;
drawLabel(context, x: x, y: posY - _legend.textHeightMax * 2.0, label: _legend.getLabel(i)!, font: labelFont, textColor: labelTextColor);
drawLabel(context, x: x, y: posY - _legend.textHeightMax * 2.0, label: labels[i]!, font: labelFont, textColor: labelTextColor);
}

// make a step down
Expand Down

0 comments on commit b0291c9

Please sign in to comment.