diff options
author | Eike Rathke <erack@redhat.com> | 2018-10-12 18:33:00 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2018-10-12 22:19:26 +0200 |
commit | da4dc534403b74182913cc4dfeb2b689a30e513c (patch) | |
tree | 415ffe752f2b60f97173e89e2dc45596f44481a3 /svtools | |
parent | c7b83934fcf4120c1a4cba8e1eaf9c7aef9edc82 (diff) |
Resolves: tdf#119739 switch date field input to NF_EVALDATEFORMAT_FORMAT_INTL
To evaluate date input against date acceptance patterns in the
order first format locale, if any, then formatter (system) locale.
The slight drawback is when the field has no content there is no
indication of that the format's locale's patterns would be
preferred, whereas the old NF_EVALDATEFORMAT_INTL_FORMAT preferred
the default locale's patterns.
The big advantage is that editing a date actually uses the
patterns associated with the presented display string.
Change-Id: Id3f11e26a0e32b95f26b69a681433deb87b7c6b0
Reviewed-on: https://gerrit.libreoffice.org/61726
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/fmtfield.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/control/fmtfield.cxx b/svtools/source/control/fmtfield.cxx index 8a718876eb7b..08d10c781eba 100644 --- a/svtools/source/control/fmtfield.cxx +++ b/svtools/source/control/fmtfield.cxx @@ -699,7 +699,7 @@ void FormattedField::FormatChanged( FORMAT_CHANGE_TYPE _nWhat ) m_pLastOutputColor = nullptr; if ( (_nWhat == FORMAT_CHANGE_TYPE::FORMATTER) && m_pFormatter ) - m_pFormatter->SetEvalDateFormat( NF_EVALDATEFORMAT_INTL_FORMAT ); + m_pFormatter->SetEvalDateFormat( NF_EVALDATEFORMAT_FORMAT_INTL ); ReFormat(); } |