Skip to content

Commit

Permalink
Merge pull request fabricjs#1517 from Kienz/issue1516
Browse files Browse the repository at this point in the history
Fix freedrawing
  • Loading branch information
Kienz committed Jul 22, 2014
2 parents c817fc1 + 045ce8b commit 266db1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/brushes/pencil_brush.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@
}

// set path origin coordinates based on our bounding box
var originLeft = this.box.minx + (this.box.maxx - this.box.minx) / 2,
originTop = this.box.miny + (this.box.maxy - this.box.miny) / 2;
var originLeft = this.box.minX + (this.box.maxX - this.box.minX) / 2,
originTop = this.box.minY + (this.box.maxY - this.box.minY) / 2;

this.canvas.contextTop.arc(originLeft, originTop, 3, 0, Math.PI * 2, false);

Expand Down

0 comments on commit 266db1f

Please sign in to comment.