aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-05-30 13:13:01 -0700
committerNivesh Rajbhandari2012-05-30 13:13:01 -0700
commitdd8a94c4ef0ccf19c332dd0a0c56fb8249aea63b (patch)
tree527f8a9a216aee10774421bf72239d68ba8c698e
parentdb22840ca995d670cf61d718d379eb2d4aaa3d59 (diff)
downloadninja-dd8a94c4ef0ccf19c332dd0a0c56fb8249aea63b.tar.gz
Fixed bad reference to stage element in pen tool.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
-rwxr-xr-xjs/tools/PenTool.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/tools/PenTool.js b/js/tools/PenTool.js
index 10eb03c9..3813123a 100755
--- a/js/tools/PenTool.js
+++ b/js/tools/PenTool.js
@@ -428,7 +428,7 @@ exports.PenTool = Montage.create(ShapeTool, {
428 var globalMousePos=null, localMousePos=null, stageWorldMousePos = null; 428 var globalMousePos=null, localMousePos=null, stageWorldMousePos = null;
429 var drawingCanvas = this._selectedSubpath.getCanvas(); 429 var drawingCanvas = this._selectedSubpath.getCanvas();
430 if (!drawingCanvas){ 430 if (!drawingCanvas){
431 drawingCanvas = ViewUtils.getStageElement(); 431 drawingCanvas = this.application.ninja.currentDocument.model.documentRoot;
432 stageWorldMousePos = hitRec.calculateStageWorldPoint(); 432 stageWorldMousePos = hitRec.calculateStageWorldPoint();
433 stageWorldMousePos[0]+= snapManager.getStageWidth()*0.5; 433 stageWorldMousePos[0]+= snapManager.getStageWidth()*0.5;
434 stageWorldMousePos[1]+= snapManager.getStageHeight()*0.5; 434 stageWorldMousePos[1]+= snapManager.getStageHeight()*0.5;