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 Christophe Jolif <cj...@ilog.fr> on 2000/12/21 18:12:23 UTC

SVGOMRectElement.getX()

Hello Stephane,

The following piece of code:

SVGRectElement rect =
mySVGDoc.createElementNS(SVGDOMImplementation.SVG_NAMESPACE_URI,
"svg:rect");
rect.getX().getBaseVal();

crashes with a NPE on the seconde line. It comes from the fact that the
defaultValueProducer is null. I see that defaultValueProducer are set
for other elements such as circle or filters, do you intend to add it to
the rect soon? On the contrary I can modify SVGOMRectElement it is not a
problem for me...

-- 
Christophe