From e4e3ee77aa01f9b6e7592306ebfa9f123a60c624 Mon Sep 17 00:00:00 2001 From: Nivesh Rajbhandari Date: Wed, 6 Jun 2012 13:59:37 -0700 Subject: Do not create any tags or shapes with width or height of 0. Signed-off-by: Nivesh Rajbhandari --- js/tools/drawing-tool.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'js/tools/drawing-tool.js') diff --git a/js/tools/drawing-tool.js b/js/tools/drawing-tool.js index d906fdf9..9ba4501c 100755 --- a/js/tools/drawing-tool.js +++ b/js/tools/drawing-tool.js @@ -64,6 +64,8 @@ exports.DrawingTool = Montage.create(ToolBase, { set: function (value) { this._currentY = value; } }, + drawData: { value: null }, + /** * PUBLIC METHODS */ @@ -74,6 +76,7 @@ exports.DrawingTool = Montage.create(ToolBase, { this._isDrawing = true; this.mouseDownHitRec = null; this.mouseUpHitRec = null; + this.drawData = null; point = webkitConvertPointFromPageToNode(this.application.ninja.stage.canvas, new WebKitPoint(event.pageX, event.pageY)); snapData = DrawingToolBase.getInitialSnapPoint(point.x, point.y, this._targetedElement); //event.layerX, event.layerY); -- cgit v1.2.3