Thank you for this quick fix ! I have another problem....I want to draw an ellipse with a width <0.... and it draw nothing... :-) My use case is to draw an ellipse with an origin on first mouse click position , and draw an ellipse since mouse is released. This works fine in Qt.
Thank you very much Cheers Laurent Le 15 janv. 09 à 10:13, Koen Deforche a écrit : > 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 ------------------------------------------------------------------------------ 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
