Related: tdf#154218 Use proper locale in SwUserFieldType::PutValue()
The cast to sal_uInt16 actually called the overloaded
DoubleToString(...,sal_uInt32) with the LanguageType value used as
format key number.
Change-Id: I74415ff5504369d437df8caab02ecb61eb853143
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150186
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
diff --git a/sw/source/core/fields/usrfld.cxx b/sw/source/core/fields/usrfld.cxx
index b24123c..ebfe46f 100644
--- a/sw/source/core/fields/usrfld.cxx
+++ b/sw/source/core/fields/usrfld.cxx
@@ -353,7 +353,7 @@ void SwUserFieldType::PutValue( const uno::Any& rAny, sal_uInt16 nWhichId )
m_nValue = fVal;
LanguageTag aContentLanguage(GetFieldTypeLanguage());
m_aContentLang = aContentLanguage.getBcp47();
m_aContent = DoubleToString(m_nValue, static_cast<sal_uInt16>(GetFieldTypeLanguage()));
m_aContent = DoubleToString(m_nValue, aContentLanguage.getLanguageType());
}
break;
case FIELD_PROP_PAR2: