You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Archie Cobbs <ar...@dellroad.org> on 2005/06/21 00:08:25 UTC
SVGArc.java fix
I believe there is still a bug in the patch to SVGArc.java.
This:
Ellipse2D ellipse = new Ellipse2D.Double
(arc.getX(), arc.getY(),
arc.getX() + width,
arc.getY() + height);
should be:
Ellipse2D ellipse = new Ellipse2D.Double
(arc.getX(), arc.getY(), width, height);
Cheers,
-Archie
__________________________________________________________________________
Archie Cobbs * CTO, Awarix * http://www.awarix.com
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
Re: SVGArc.java fix
Posted by Cameron McCormack <ca...@aka.mcc.id.au>.
Hi Archie.
Archie Cobbs:
> I believe there is still a bug in the patch to SVGArc.java.
>
> This:
>
> Ellipse2D ellipse = new Ellipse2D.Double
> (arc.getX(), arc.getY(),
> arc.getX() + width,
> arc.getY() + height);
>
> should be:
>
> Ellipse2D ellipse = new Ellipse2D.Double
> (arc.getX(), arc.getY(), width, height);
Oh, yeah, you're right. Well spotted (and poorly tested by me).
Working version now in CVS.
Thanks,
Cameron
--
e-mail : cam (at) mcc.id.au icq : 26955922
web : http://mcc.id.au/ msn : cam-msn (at) aka.mcc.id.au
office : +61399055779 jabber : heycam (at) jabber.org
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org