aboutsummaryrefslogtreecommitdiff
path: root/js/tools/SelectionTool.js
diff options
context:
space:
mode:
authorValerio Virgillito2012-06-06 17:02:59 -0700
committerValerio Virgillito2012-06-06 17:02:59 -0700
commit47e0e1f047e83b71c3f86812a45d33904201cc7a (patch)
treed5f9fbc30dce114f630114c50becc782d2e78090 /js/tools/SelectionTool.js
parent1ab7267ede9f4691caf9ca09940b2bac67badbcd (diff)
parente4e3ee77aa01f9b6e7592306ebfa9f123a60c624 (diff)
downloadninja-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/SelectionTool.js')
-rwxr-xr-xjs/tools/SelectionTool.js2
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;