diff options
author | Valerio Virgillito | 2012-02-28 13:19:52 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-02-28 13:19:52 -0800 |
commit | 2ab07cb8ac76a06606ce455bb2e6b4889e3ddc65 (patch) | |
tree | aed095ad5f21f7cec5dbb779afda5c05ff5cb7c5 /js/tools/LineTool.js | |
parent | e5b1102f0cff7f5ba7074840ccf29dc1c02ced8e (diff) | |
parent | 347fc28227d822e9fea3fa823fae79cf14ea041c (diff) | |
download | ninja-2ab07cb8ac76a06606ce455bb2e6b4889e3ddc65.tar.gz |
Merge branch 'integration' of https://github.com/ericmueller/ninja-internal into integration-candidate
Diffstat (limited to 'js/tools/LineTool.js')
-rwxr-xr-x | js/tools/LineTool.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/js/tools/LineTool.js b/js/tools/LineTool.js index 233316a5..0a7c0534 100755 --- a/js/tools/LineTool.js +++ b/js/tools/LineTool.js | |||
@@ -42,7 +42,10 @@ exports.LineTool = Montage.create(ShapeTool, { | |||
42 | } | 42 | } |
43 | 43 | ||
44 | this._strokeSize = ShapesController.GetValueInPixels(this.options.strokeSize.value, this.options.strokeSize.units, null); | 44 | this._strokeSize = ShapesController.GetValueInPixels(this.options.strokeSize.value, this.options.strokeSize.units, null); |
45 | this._strokeColor = this.application.ninja.colorController.colorToolbar.stroke.color.css; | 45 | if (this.application.ninja.colorController.colorToolbar.stroke.color) |
46 | this._strokeColor = this.application.ninja.colorController.colorToolbar.stroke.color.css; | ||
47 | else | ||
48 | this._strokeColor = [0,0,0,1]; | ||
46 | this.startDraw(event); | 49 | this.startDraw(event); |
47 | } | 50 | } |
48 | }, | 51 | }, |