Hey Laurent, 2009/1/14 Laurent Garnier <[email protected]>: > I've got a issue, I want to draw a ellipse in real time on browser, > but it crash when width=0. > > I've look in the CVS tree and I found the error in this method (it has > a division by width) : > > void WCanvasPaintDevice::drawArc(const WRectF& rect, double startAngle, > double spanAngle) > > Who is alowed to change this ?
Good point. That is a very thin ellipse but crashing is the worst possible behavior! Extrapolating from the SVG case, it should not draw anything, i.e. not even a line ? I have fixed this in CVS. I also tried to make the best of arcs with width/height >>> 1 or <<< 1, i.e. which are very skewed, for which html5 canvas unfortunately provides very lousy support. Regards, koen ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
