Skip to content

Commit

Permalink
Merge pull request #3740 from anton-filimonov/bugfixes/lineChart_line…
Browse files Browse the repository at this point in the history
…CapForAll

Fix applying lineCap value for line chart data sets (Fixes #3739)
  • Loading branch information
liuxuan30 authored Nov 15, 2018
2 parents 271606e + 44ba57d commit 9971afc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Charts/Renderers/LineChartRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ open class LineChartRenderer: LineRadarRenderer
context.setLineDash(phase: 0.0, lengths: [])
}

context.setLineCap(dataSet.lineCapType)

// if drawing cubic lines is enabled
switch dataSet.mode
{
Expand Down Expand Up @@ -313,8 +315,6 @@ open class LineChartRenderer: LineRadarRenderer
}

context.saveGState()

context.setLineCap(dataSet.lineCapType)

// more than 1 color
if dataSet.colors.count > 1
Expand Down

0 comments on commit 9971afc

Please sign in to comment.