Skip to content

Commit

Permalink
Merge pull request #1826 from hallatore/Bug_BezierCurveAtZero
Browse files Browse the repository at this point in the history
Fixed bug with bezier still being used with tension set to 0
  • Loading branch information
etimberg committed Dec 23, 2015
2 parents d9e1b22 + a1940ca commit 968a11a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/elements/element.line.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
skipHandler.call(this, previousPoint, point, nextPoint);
} else if (previousPoint._view.skip) {
previousSkipHandler.call(this, previousPoint, point, nextPoint);
} else if (point._view.tension === 0) {
ctx.lineTo(point._view.x, point._view.y);
} else {
// Line between points
ctx.bezierCurveTo(
Expand Down

0 comments on commit 968a11a

Please sign in to comment.