aboutsummaryrefslogtreecommitdiff
path: root/js/document
diff options
context:
space:
mode:
authorhwc4872012-03-20 16:26:52 -0700
committerhwc4872012-03-20 16:26:52 -0700
commit98a02c1ac6f189aba93d7cce64ba5bdbc0617f6c (patch)
tree93a3fc2c1aaffb97edeecc890e5540f7d15ad838 /js/document
parent43ea2515f1482eeb77454f407111f0568c056f72 (diff)
downloadninja-98a02c1ac6f189aba93d7cce64ba5bdbc0617f6c.tar.gz
Bug Fixes for Canvas & WebGL File IO
Diffstat (limited to 'js/document')
-rwxr-xr-xjs/document/html-document.js6
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