
On 7/17/07, Maximilian Albert <Anhalter42@...173...> wrote:
It seems that depending on the locale the coordinates of the box get converted in the wrong way when they are written to svg. More precisely, the decimal point is sometimes converted to a comma, which completely messes up the interpretation of the coordinates. I just committed a fix in SVN. Would you (or anyone else experiencing the same problem) mind giving it a try again to report if it works or if any problems remain?
Ah, yes. This hit us many times before. Sorry I forgot to warn you against this :)
It's better to use not g_string_append_printf but our own Inkscape::SVGOStringStream class - it has settable number precision and some other nice properties. You can find examples of its use in many places in the code.
Oh, and I just noticed that you used g_string_append_printf for creating your own path representation. In this case, it's simpler and better to use our existing path code for that. Just create a temporary NArtBpath, add the linetos, and then call sp_svg_write_path to get the string. This way all path writing is in one place, which is good for maintainability.