You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by bu...@apache.org on 2007/01/10 09:30:58 UTC
DO NOT REPLY [Bug 41336] New: - SVGRadialGradientElement getR().getBaseVal() throw exception
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41336>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41336
Summary: SVGRadialGradientElement getR().getBaseVal() throw
exception
Product: Batik
Version: 1.6
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: P2
Component: SVG DOM
AssignedTo: batik-dev@xmlgraphics.apache.org
ReportedBy: tonny@kiyut.com
Calling elt.getR().getBaseVal() (elt is SVGRadial GradientElement) throw the
following exception,
org.apache.batik.dom.svg.LiveAttributeException
at org.apache.batik.dom.svg.AbstractSVGAnimatedLength
$BaseSVGLength.revalidate(Unknown Source)
at
org.apache.batik.dom.svg.AbstractSVGLength.getValueAsString(Unknown
Source)
Look at the Batik source code, it because the null value passed on private void
initializeLiveAttributes() at SVGOMRadialGradientElement especially the line
r = createLiveAnimatedLength(null, SVG_R_ATTRIBUTE,
null,SVGOMAnimatedLength.OTHER_LENGTH,false);
Where as according to the SVG Spec the r value: If the attribute is not
specified, the effect is as if a value of "50%" were specified.
The fix is simple, it should be
r = createLiveAnimatedLength(null, SVG_R_ATTRIBUTE,
SVG_RADIAL_GRADIENT_R_DEFAULT_VALUE,SVGOMAnimatedLength.OTHER_LENGTH,false);
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org
DO NOT REPLY [Bug 41336] - SVGRadialGradientElement getR().getBaseVal() throw exception
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41336>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41336
cam@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From cam@apache.org 2007-01-11 15:40 -------
Hi Tonny.
You are right, this should have a default value of "50%".
Fixed in SVN.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org