[Sie-announce] SIEコード [2314] チケット #24217「animateColor要素でアニメ終了時にプログラムが止まる」を修正

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2011年 1月 20日 (木) 21:26:54 JST


Revision: 2314
          http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=2314
Author:   dhrname
Date:     2011-01-20 21:26:54 +0900 (Thu, 20 Jan 2011)

Log Message:
-----------
チケット #24217「animateColor要素でアニメ終了時にプログラムが止まる」を修正

Ticket Links:
:-----------
    http://sourceforge.jp/projects/sie/tracker/detail/24217

Modified Paths:
--------------
    branches/06x/068/org/w3c/dom/svg.js

Modified: branches/06x/068/org/w3c/dom/svg.js
===================================================================
--- branches/06x/068/org/w3c/dom/svg.js	2011-01-20 12:02:16 UTC (rev 2313)
+++ branches/06x/068/org/w3c/dom/svg.js	2011-01-20 12:26:54 UTC (rev 2314)
@@ -4908,7 +4908,7 @@
     var attrName = tar.getAttributeNS(null, "attributeName"), newAttr = tar.targetElement.attributes.getNamedItemNS(null, attrName);
     var ttr = tar.targetElement, tta = ttr[attrName];
     tar._frame = function() {
-      var d = tar.getSimpleDuration() * 0.8, n = tar._valueList.length - 1, tg = tar.getCurrentTime();
+      var d = tar.getSimpleDuration() * 0.8, n = tar._valueList.length - 2, tg = tar.getCurrentTime();
       if ((n !== -1) && (d !== 0) && (tg <= d)) {
         var ii = Math.floor((tg*n) / d);
       } else {
@@ -5159,7 +5159,7 @@
     }
     tar._frame = function() {
       var _tar = tar;
-      var d = _tar.getSimpleDuration() * 0.8, n = _tar._valueList.length - 1, tg = _tar.getCurrentTime();
+      var d = _tar.getSimpleDuration() * 0.8, n = _tar._valueList.length - 2, tg = _tar.getCurrentTime();
       if ((n !== -1) && (d !== 0) && (tg <= d)) {
         var ii = Math.floor((tg*n) / d);
       } else {




Sie-announce メーリングリストの案内
Back to archive index