aboutsummaryrefslogtreecommitdiff
path: root/js/tools/InkBottleTool.js
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-06-06 13:59:37 -0700
committerNivesh Rajbhandari2012-06-06 13:59:37 -0700
commite4e3ee77aa01f9b6e7592306ebfa9f123a60c624 (patch)
treea96013eff3ea3a977baa5daf999777a814afa65d /js/tools/InkBottleTool.js
parent18e212dca48066d1ddaca96875a3f40adcc859b6 (diff)
downloadninja-e4e3ee77aa01f9b6e7592306ebfa9f123a60c624.tar.gz
Do not create any tags or shapes with width or height of 0.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/tools/InkBottleTool.js')
-rwxr-xr-xjs/tools/InkBottleTool.js1
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)