diff --git a/js/macros/edit.js b/js/macros/edit.js index de6d82727..fade46ae1 100644 --- a/js/macros/edit.js +++ b/js/macros/edit.js @@ -106,7 +106,8 @@ BitmapEditor.prototype.strokeStart = function(x,y) { BitmapEditor.prototype.strokeMove = function(x,y) { var canvas = this.macroNode.content[0].domNode, canvasRect = canvas.getBoundingClientRect(), - ctx = canvas.getContext("2d"); + ctx = canvas.getContext("2d"), + t; // Add the new position to the end of the stroke this.stroke.push({x: x - canvasRect.left, y: y - canvasRect.top}); // Redraw the previous image @@ -117,9 +118,12 @@ BitmapEditor.prototype.strokeMove = function(x,y) { ctx.lineJoin = "round"; ctx.beginPath(); ctx.moveTo(this.stroke[0].x,this.stroke[0].y); - for(var t=1; t