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());
        }
    }