Issues with SVG precision number writing

View: New views
1 Messages — Rating Filter:   Alert me  

Issues with SVG precision number writing

by Jon Cruz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Inkscape-devel mailing list
Inkscape-devel@...
https://lists.sourceforge.net/lists/listinfo/inkscape-devel