
In fixing bug #399604 I discovered that our writing of numbers with specified precision has a few bugs in it. Given that we've come close to a release without people explicitly noticing I think we are OK for the moment. However we really should look into that and see what we can do as far as fixing proper support for edge cases.
If people can take a look at that, it would be quite helpful. There is an appropriate unit test source file in our tree: svg/svg-length-test.h
The function that has issues is unsigned int sp_svg_number_write_de( gchar *buf, int bufLen, double val, unsigned int tprec, int min_exp );
Note that it did not used to have that bufLen parameter, and that even at the moment it is unused. I'll be adding a few test cases in there, but if others can also contribute we can stabilize things much quicker.
Thanks
participants (1)
-
Jon A. Cruz