Remove thousand seaparator according to xml specification for type xs:decimal.
--HG-- branch : develop
This commit is contained in:
parent
c53b4fb433
commit
9103c8ef15
|
@ -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()));
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue
Block a user