summaryrefslogtreecommitdiff
path: root/sw/inc/usrfld.hxx
diff options
context:
space:
mode:
authorkirchhoffb <bjoern.kirchhoff@escriba.de>2020-06-20 17:34:46 +0200
committerMiklos Vajna <vmiklos@collabora.com>2020-11-10 09:16:22 +0100
commitabfee0d2517195dfe49be8d538a48b31f4fb0eef (patch)
tree3d5e403c36c061a00d815df45caa27aed507f4ea /sw/inc/usrfld.hxx
parent0afba07a597bf1d361624e10968855a802b859a0 (diff)
sw user field type: fix failing string to double conversion
For converting a string to a double, we need to know the language of the string. We should not assume, that this language is always the system locale, because the system locale can change during a session. Change-Id: Ic851d7430bba7392c7e2c8b36912467eee935f9c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96776 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw/inc/usrfld.hxx')
-rw-r--r--sw/inc/usrfld.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/inc/usrfld.hxx b/sw/inc/usrfld.hxx
index c297ef013409..589c379a5d1c 100644
--- a/sw/inc/usrfld.hxx
+++ b/sw/inc/usrfld.hxx
@@ -41,6 +41,8 @@ class SW_DLLPUBLIC SwUserFieldType final : public SwValueFieldType
OUString m_aName;
/// String value type.
OUString m_aContent;
+ /// Language used by m_aContents
+ OUString m_aContentLang;
sal_uInt16 m_nType;
public: