Hi Philip,
"philip zuniga" <[EMAIL PROTECTED]> wrote on 05/26/2006 12:08:07 PM:
> here is the trace of the error:
>
> java.lang.NullPointerException
> at java.awt.geom.AffineTransform.<init>(Unknown Source)
> at org.apache.batik.bridge.SVGSVGElementBridge.
> handleDOMAttrModifiedEvent(Unknown Source)
It looks like this might be fixed in SVN already. I would
suggest testing with the latest 'trunk' or 'branches/svg11'
code.
> Philip Zuniga
>
> On 5/26/06, [EMAIL PROTECTED] <[EMAIL PROTECTED] > wrote:
> Hi Philip,
>
> "philip zuniga" <[EMAIL PROTECTED] > wrote on 05/26/2006 12:05:10
AM:
>
> > I have a function in my java code that adjusts the viewbox attribute
of
> my SVG
> > document. This function changes the 3rd parameter of the viewbox
> attribute and
> > the width of the SVG file:
> >
> > setWidth( Integer x )
> > {
> > root.setAttribute("viewBox", "0,0," + x.toString() + ",0");
>
> This doesn't look particularly good to me, the 'height' of
> your viewBox is being set to zero, which might cause some problems....
>
> > I noticed that when I increase the x, the viewbox and the width
> increases
> > accordingly. But when I decrease my x attribute I get a null pointer
> > assignment error, do you know why I get such an error?
>
> Not with any confidence (the above might be part of it),
> but if you provide the stack trace I might be able to.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]