diff options
author | Valerio Virgillito | 2012-03-27 12:06:29 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-03-27 12:06:29 -0700 |
commit | 675fffb08f570783f055471501f94fc273de2b9e (patch) | |
tree | 215b54eee4d6f982809087c59cf8f1d37b2f4350 /js/controllers/elements | |
parent | 73ae65902d355fcb75bcdb486eaa27c0d79125c8 (diff) | |
parent | 0a06e17da5759c29b63c32118c7f2b14452380b1 (diff) | |
download | ninja-675fffb08f570783f055471501f94fc273de2b9e.tar.gz |
Merge pull request #146 from mqg734/WebGLFileIO
Fixes for Line Tool and EyeDropper tool runtime error.
Diffstat (limited to 'js/controllers/elements')
-rwxr-xr-x | js/controllers/elements/shapes-controller.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/controllers/elements/shapes-controller.js b/js/controllers/elements/shapes-controller.js index 5b9e4672..f0e9458b 100755 --- a/js/controllers/elements/shapes-controller.js +++ b/js/controllers/elements/shapes-controller.js | |||
@@ -274,6 +274,10 @@ exports.ShapesController = Montage.create(CanvasController, { | |||
274 | color = this.getShapeProperty(el, "stroke"); | 274 | color = this.getShapeProperty(el, "stroke"); |
275 | } | 275 | } |
276 | 276 | ||
277 | if(!css) { | ||
278 | return null; | ||
279 | } | ||
280 | |||
277 | css = this.application.ninja.colorController.colorModel.webGlToCss(color); | 281 | css = this.application.ninja.colorController.colorModel.webGlToCss(color); |
278 | return this.application.ninja.colorController.getColorObjFromCss(css); | 282 | return this.application.ninja.colorController.getColorObjFromCss(css); |
279 | } | 283 | } |