Remove thousand seaparator according to xml specification for type xs:decimal.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-10-04 16:43:06 +03:00
parent c53b4fb433
commit 9103c8ef15

View file

@ -150,7 +150,9 @@ template <typename T>
*/
inline void VDomDocument::SetAttribute(QDomElement &domElement, const QString &name, const T &value) const
{
domElement.setAttribute(name, QString().setNum(value).replace(QLatin1String(","), QLatin1String(".")));
// See specification for xs:decimal
const QLocale locale = QLocale::c();
domElement.setAttribute(name, locale.toString(value).remove(locale.groupSeparator()));
}
//---------------------------------------------------------------------------------------------------------------------