svnno****@sourc*****
svnno****@sourc*****
2010年 9月 27日 (月) 22:35:58 JST
Revision: 2025
http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2025
Author: dhrname
Date: 2010-09-27 22:35:57 +0900 (Mon, 27 Sep 2010)
Log Message:
-----------
Modified Paths:
--------------
branches/06x/061/org/w3c/dom/svg.js
Modified: branches/06x/061/org/w3c/dom/svg.js
===================================================================
--- branches/06x/061/org/w3c/dom/svg.js 2010-09-27 13:29:53 UTC (rev 2024)
+++ branches/06x/061/org/w3c/dom/svg.js 2010-09-27 13:35:57 UTC (rev 2025)
@@ -3412,6 +3412,9 @@
*charnum番目の文字からnchars+charnum-1番目までの文字列の長さを求めて返す
*/
/*float*/ SVGTextContentElement.prototype.getSubStringLength = function(/*unsigned long*/ charnum, /*unsigned long*/ nchars ) {
+ if (nchars === 0) {
+ return 0;
+ }
var end = this.getEndPositionOfChar(nchars+charnum-1), st = this.getStartPositionOfChar(charnum);
if (this._isYokogaki) {
var s = end.x - st.x;