diff options
author | hwc487 | 2012-03-20 16:26:52 -0700 |
---|---|---|
committer | hwc487 | 2012-03-20 16:26:52 -0700 |
commit | 98a02c1ac6f189aba93d7cce64ba5bdbc0617f6c (patch) | |
tree | 93a3fc2c1aaffb97edeecc890e5540f7d15ad838 /js/document | |
parent | 43ea2515f1482eeb77454f407111f0568c056f72 (diff) | |
download | ninja-98a02c1ac6f189aba93d7cce64ba5bdbc0617f6c.tar.gz |
Bug Fixes for Canvas & WebGL File IO
Diffstat (limited to 'js/document')
-rwxr-xr-x | js/document/html-document.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/document/html-document.js b/js/document/html-document.js index bb54874c..8b765501 100755 --- a/js/document/html-document.js +++ b/js/document/html-document.js | |||
@@ -291,7 +291,7 @@ exports.HTMLDocument = Montage.create(TextDocument, { | |||
291 | shapeModel.GLGeomObj = root; | 291 | shapeModel.GLGeomObj = root; |
292 | shapeModel.strokeSize = root._strokeWidth; | 292 | shapeModel.strokeSize = root._strokeWidth; |
293 | shapeModel.stroke = root._strokeColor.slice(); | 293 | shapeModel.stroke = root._strokeColor.slice(); |
294 | shapeModel.strokeMaterial = root._strokeMaterial.dup(); | 294 | shapeModel.strokeMaterial = root._strikeMaterial ? root._strokeMaterial.dup() : null; |
295 | shapeModel.strokeStyle = "solid"; | 295 | shapeModel.strokeStyle = "solid"; |
296 | //shapeModel.strokeStyleIndex | 296 | //shapeModel.strokeStyleIndex |
297 | //shapeModel.border | 297 | //shapeModel.border |
@@ -302,7 +302,7 @@ exports.HTMLDocument = Montage.create(TextDocument, { | |||
302 | elementModel.selection = "Rectangle"; | 302 | elementModel.selection = "Rectangle"; |
303 | elementModel.pi = "RectanglePi"; | 303 | elementModel.pi = "RectanglePi"; |
304 | shapeModel.fill = root._fillColor.slice(); | 304 | shapeModel.fill = root._fillColor.slice(); |
305 | shapeModel.fillMaterial = root._fillMaterial.dup(); | 305 | shapeModel.fillMaterial = root._fillMaterial ? root._fillMaterial.dup() : null; |
306 | shapeModel.tlRadius = root._tlRadius; | 306 | shapeModel.tlRadius = root._tlRadius; |
307 | shapeModel.trRadius = root._trRadius; | 307 | shapeModel.trRadius = root._trRadius; |
308 | shapeModel.blRadius = root._blRadius; | 308 | shapeModel.blRadius = root._blRadius; |
@@ -313,7 +313,7 @@ exports.HTMLDocument = Montage.create(TextDocument, { | |||
313 | elementModel.selection = "Oval"; | 313 | elementModel.selection = "Oval"; |
314 | elementModel.pi = "OvalPi"; | 314 | elementModel.pi = "OvalPi"; |
315 | shapeModel.fill = root._fillColor.slice(); | 315 | shapeModel.fill = root._fillColor.slice(); |
316 | shapeModel.fillMaterial = root._fillMaterial.dup(); | 316 | shapeModel.fillMaterial = root._fillMaterial ? root._fillMaterial.dup() : null; |
317 | shapeModel.innerRadius = root._innerRadius; | 317 | shapeModel.innerRadius = root._innerRadius; |
318 | break; | 318 | break; |
319 | 319 | ||