Skip to content

Commit

Permalink
Fixed cubic fill causing borders on cubic stroke (Fixes #747)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgindi committed Mar 9, 2016
1 parent 92e626c commit c6bfb03
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Charts/Classes/Renderers/LineChartRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,10 @@ public class LineChartRenderer: LineRadarChartRenderer

if (dataSet.isDrawFilledEnabled)
{
drawCubicFill(context: context, dataSet: dataSet, spline: cubicPath, matrix: valueToPixelMatrix, from: minx, to: size)
// Copy this path because we make changes to it
let fillPath = CGPathCreateMutableCopy(cubicPath)

drawCubicFill(context: context, dataSet: dataSet, spline: fillPath!, matrix: valueToPixelMatrix, from: minx, to: size)
}

CGContextBeginPath(context)
Expand Down

0 comments on commit c6bfb03

Please sign in to comment.