diff options
author | Nivesh Rajbhandari | 2012-03-02 11:21:29 -0800 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-03-02 11:21:29 -0800 |
commit | f3207f39ea9d8c1c34246217a23d3a689671903d (patch) | |
tree | 2b8e6b3f368fac592adb4c15ec7ae2f989ac9a3c /js/tools | |
parent | 1760bac1da9218315ad1bacdcf3a157495a049e8 (diff) | |
download | ninja-f3207f39ea9d8c1c34246217a23d3a689671903d.tar.gz |
Don't draw transform handles if the stage is the target element.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/tools')
-rwxr-xr-x | js/tools/SelectionTool.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/tools/SelectionTool.js b/js/tools/SelectionTool.js index 1a6bee55..6d8ff175 100755 --- a/js/tools/SelectionTool.js +++ b/js/tools/SelectionTool.js | |||
@@ -755,7 +755,7 @@ var SelectionTool = exports.SelectionTool = Montage.create(ModifierToolBase, { | |||
755 | this.application.ninja.stage.clearDrawingCanvas(); | 755 | this.application.ninja.stage.clearDrawingCanvas(); |
756 | 756 | ||
757 | var item = this._target; | 757 | var item = this._target; |
758 | if(!item) | 758 | if(!item || (item === this.application.ninja.currentDocument.documentRoot)) |
759 | { | 759 | { |
760 | return; | 760 | return; |
761 | } | 761 | } |