svnno****@sourc*****
svnno****@sourc*****
2010年 1月 23日 (土) 22:39:12 JST
Revision: 1599 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1599 Author: dhrname Date: 2010-01-23 22:39:12 +0900 (Sat, 23 Jan 2010) Log Message: ----------- Modified Paths: -------------- branches/05x/sie.js Modified: branches/05x/sie.js =================================================================== --- branches/05x/sie.js 2010-01-23 13:38:56 UTC (rev 1598) +++ branches/05x/sie.js 2010-01-23 13:39:12 UTC (rev 1599) @@ -653,7 +653,7 @@ STPath.prototype.set = function( /*float*/ w, /*float*/ h) { var dat = "", _isCorQ = isCorQ, _parseInt = parseInt, _parseFloat = parseFloat; if(this.d === ""){ - throw new Error("d属性が空です"); + return; //d属性が空の場合は、エラーを出すのが仕様 } var dd = this.d .replace(a, " -") @@ -1854,7 +1854,7 @@ STArc.prototype.set = function starcset(x1, y1, rx, ry, psai, fA, fS, x4, y4) { var fS = parseFloat(fS), rx = parseFloat(rx), ry = parseFloat(ry), psai = parseFloat(psai), x1 = parseFloat(x1), x4 = parseFloat(x4), y1 = parseFloat(y1), y4 = parseFloat(y4); if (rx === 0 || ry === 0) { - throw "line"; + return; } rx = Math.abs(rx); ry = Math.abs(ry);