svnno****@sourc*****
svnno****@sourc*****
2010年 3月 25日 (木) 23:35:07 JST
Revision: 1756 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1756 Author: dhrname Date: 2010-03-25 23:35:07 +0900 (Thu, 25 Mar 2010) Log Message: ----------- Modified Paths: -------------- branches/ufltima/dom/svg.js Modified: branches/ufltima/dom/svg.js =================================================================== --- branches/ufltima/dom/svg.js 2010-03-25 14:27:08 UTC (rev 1755) +++ branches/ufltima/dom/svg.js 2010-03-25 14:35:07 UTC (rev 1756) @@ -2010,7 +2010,7 @@ } if (stroke.paintType === SVGPaint.SVG_PAINTTYPE_RGBCOLOR || stroke.paintType === SVGPaint.SVG_PAINTTYPE_CURRENTCOLOR) { var strokeElement = document.createElement("v:stroke"); - var sw = tar.ownerDocument.documentElement.createSVGLength(parseFloat(style.getProperty("stroke-width")));//, Math.sqrt((w*w + h*h) / 2)); + var sw = tar.ownerDocument.documentElement.createSVGLength(parseFloat(style.getPropertyValue("stroke-width")));//, Math.sqrt((w*w + h*h) / 2)); var swx = sw.value * Math.sqrt(Math.abs(matrix._determinant())); strokeElement.setAttribute("weight", swx + "px"); if (!stroke.uri) { @@ -2033,7 +2033,7 @@ strokeElement.setAttribute("endcap", style.getPropertyValue("stroke-linecap")); } var tsd = style.getPropertyValue("stroke-dasharray"); - if (!isNone[tsd]) { + if (tsd !== "none") { if (tsd.indexOf(",") > 0) { //コンマ区切りの文字列の場合 var strs = tsd.split(","); for (var i = 0, sli = strs.length; i < sli; ++i) {