mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-10 06:44:44 +00:00
Merge pull request #1988 from StileEducation/PR_stroke_dash_array
Fix base throwing error when strokeDashArray unitialized
This commit is contained in:
commit
bf40c717a8
1 changed files with 3 additions and 1 deletions
|
|
@ -71,7 +71,9 @@ fabric.BaseBrush = fabric.util.createClass(/** @lends fabric.BaseBrush.prototype
|
|||
ctx.lineWidth = this.width;
|
||||
ctx.lineCap = this.strokeLineCap;
|
||||
ctx.lineJoin = this.strokeLineJoin;
|
||||
ctx.setLineDash(this.strokeDashArray);
|
||||
if (this.strokeDashArray) {
|
||||
ctx.setLineDash(this.strokeDashArray);
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue