diff options
author | Nivesh Rajbhandari | 2012-06-06 13:59:37 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-06-06 13:59:37 -0700 |
commit | e4e3ee77aa01f9b6e7592306ebfa9f123a60c624 (patch) | |
tree | a96013eff3ea3a977baa5daf999777a814afa65d /js/tools/SelectionTool.js | |
parent | 18e212dca48066d1ddaca96875a3f40adcc859b6 (diff) | |
download | ninja-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/SelectionTool.js')
-rwxr-xr-x | js/tools/SelectionTool.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/js/tools/SelectionTool.js b/js/tools/SelectionTool.js index 7b72a857..ed92b893 100755 --- a/js/tools/SelectionTool.js +++ b/js/tools/SelectionTool.js | |||
@@ -49,6 +49,8 @@ var SelectionTool = exports.SelectionTool = Montage.create(ModifierToolBase, { | |||
49 | 49 | ||
50 | startDraw: { | 50 | startDraw: { |
51 | value: function(event) { | 51 | value: function(event) { |
52 | this.drawData = null; | ||
53 | |||
52 | if(!this.application.ninja.selectedElements.length) | 54 | if(!this.application.ninja.selectedElements.length) |
53 | { | 55 | { |
54 | this._isSelecting = true; | 56 | this._isSelecting = true; |