diff options
author | Valerio Virgillito | 2012-06-06 17:02:59 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-06-06 17:02:59 -0700 |
commit | 47e0e1f047e83b71c3f86812a45d33904201cc7a (patch) | |
tree | d5f9fbc30dce114f630114c50becc782d2e78090 /js/tools/InkBottleTool.js | |
parent | 1ab7267ede9f4691caf9ca09940b2bac67badbcd (diff) | |
parent | e4e3ee77aa01f9b6e7592306ebfa9f123a60c624 (diff) | |
download | ninja-47e0e1f047e83b71c3f86812a45d33904201cc7a.tar.gz |
Merge pull request #276 from mqg734/DrawingTools
Do not create any tags or shapes with width or height of 0.
Diffstat (limited to 'js/tools/InkBottleTool.js')
-rwxr-xr-x | js/tools/InkBottleTool.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/js/tools/InkBottleTool.js b/js/tools/InkBottleTool.js index dff0b0fa..c5640b10 100755 --- a/js/tools/InkBottleTool.js +++ b/js/tools/InkBottleTool.js | |||
@@ -65,6 +65,7 @@ exports.InkBottleTool = Montage.create(ModifierToolBase, { | |||
65 | // Called by modifier tool base's HandleLeftButtonDown after updating selection (if needed) | 65 | // Called by modifier tool base's HandleLeftButtonDown after updating selection (if needed) |
66 | startDraw: { | 66 | startDraw: { |
67 | value: function(event) { | 67 | value: function(event) { |
68 | this.drawData = null; | ||
68 | this.isDrawing = true; | 69 | this.isDrawing = true; |
69 | 70 | ||
70 | if(this._canColor && this.application.ninja.selectedElements.length) | 71 | if(this._canColor && this.application.ninja.selectedElements.length) |