You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-commits@xmlgraphics.apache.org by ca...@apache.org on 2007/09/09 08:04:05 UTC
svn commit: r573951 -
/xmlgraphics/batik/trunk/sources/org/apache/batik/anim/timing/TimedElement.java
Author: cam
Date: Sat Sep 8 23:04:04 2007
New Revision: 573951
URL: http://svn.apache.org/viewvc?rev=573951&view=rev
Log:
Applying patch from Jasleen Singh for bug 42312. Invalid values for
min="" and max="" on animation elements must be ignored.
Thanks Jasleen!
Modified:
xmlgraphics/batik/trunk/sources/org/apache/batik/anim/timing/TimedElement.java
Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/anim/timing/TimedElement.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/anim/timing/TimedElement.java?rev=573951&r1=573950&r2=573951&view=diff
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/anim/timing/TimedElement.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/anim/timing/TimedElement.java Sat Sep 8 23:04:04 2007
@@ -1134,9 +1134,7 @@
try {
this.min = parseClockValue(min, false);
} catch (ParseException ex) {
- throw createException
- ("attribute.malformed",
- new Object[] { null, SMIL_MIN_ATTRIBUTE });
+ this.min = 0;
}
if (this.min < 0) {
this.min = 0;
@@ -1160,9 +1158,7 @@
try {
this.max = parseClockValue(max, false);
} catch (ParseException ex) {
- throw createException
- ("attribute.malformed",
- new Object[] { null, SMIL_MAX_ATTRIBUTE });
+ this.max = INDEFINITE;
}
if (this.max < 0) {
this.max = 0;