Boris, Thank you.
I'm afraid of your patch 1, though, since I'm not sure if the C++ standard guarantees correct order of execution to make things work. I've split it in two statements. Also, I'm not sure how the HTML5 painter will react when you pass NaNs to it, but at least we're now garbage-in/garbage out-compliant ;-) BR, Wim. 2012/8/18 Nagaev Boris <[email protected]>: > Hello! > > I discovered two bugs, causing crash of WCartesianChart. > > Here I attach patches for these bugs: > > 1. x and y were passed to stream as raw double's. They were wrappered > by Utils::round_str. > > 2. generic_double_to_str used to produce nan instead of NaN. > > After this, WCartesianChart works. > > Another crash, which I can't reproduced, was caused by this JS: > ctx.lineTo(39.500,-0.00>); > When I tried to reproduce it, it turned into > ctx.lineTo(39.500,-nan); > > I thought that "-0.00>" is a result of error in "fast float->string > converter". But I can't find error in it. And it should not be called > for NaN. So there can be another bug related. > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > witty-interest mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/witty-interest > ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
