| commit | ba6d84b854e1abd3e913423dbcfaf192f7ade7f2 | [log] |
|---|---|---|
| author | Eike Rathke <erack@redhat.com> | Sat Apr 01 16:59:07 2023 +0200 |
| committer | Eike Rathke <erack@redhat.com> | Sun Apr 02 11:28:56 2023 +0200 |
| tree | bb8c3d3b1085eac4f39e5430fca6967f48417bae | |
| parent | 7fed5d046f1c7c9e8caa2e80c020ea8f8ff6df66 [diff] |
Resolves: tdf#154218 Tie user field content value string to content locale ... instead of the format's locale. Change-Id: I83aeaa1433486241626fafc1ab9b4e2b3802d3eb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149909 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 33a5e70..4f84b8b 100644 --- a/sw/source/core/fields/usrfld.cxx +++ b/sw/source/core/fields/usrfld.cxx
@@ -307,7 +307,7 @@ void SwUserFieldType::SetContent( const OUString& rStr, sal_uInt32 nFormat ) SetValue(fValue); LanguageTag aContentLanguage(GetFieldTypeLanguage()); m_aContentLang = aContentLanguage.getBcp47(); m_aContent = DoubleToString(fValue, nFormat); m_aContent = DoubleToString(fValue, aContentLanguage.getLanguageType()); } }