Produce correct SVG files in all locales.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 14 Mar 2011 11:54:43 +0000 (11:54 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 14 Mar 2011 11:54:43 +0000 (11:54 +0000)
commitcaef3ffacc79373de63a3c406d31d8dffedcf903
treedbeddcd18f422520f16f9ad5386bbced27526c26
parentce39ca74bc413b8a5574f733cd9a44e7b1e9beff
Produce correct SVG files in all locales.

Using wxSVGFileDC in locales using comma as decimal separator resulted in
invalid SVG files being created as a decimal period should always be used in
them.

Fix this by replacing "%g" format specification with wxString::FromCDouble()
call (wrapped in a convenient NumStr() helper function).

Closes #12008.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67188 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
docs/changes.txt
src/common/dcsvg.cpp