summaryrefslogtreecommitdiffstats
path: root/svtools
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2018-10-12 18:33:00 +0200
committerEike Rathke <erack@redhat.com>2018-10-12 22:19:26 +0200
commitda4dc534403b74182913cc4dfeb2b689a30e513c (patch)
tree415ffe752f2b60f97173e89e2dc45596f44481a3 /svtools
parenttdf#119992 sw: compare sub-strings in SwTextGlyphsKey comparison (diff)
downloadcore-da4dc534403b74182913cc4dfeb2b689a30e513c.tar.gz
core-da4dc534403b74182913cc4dfeb2b689a30e513c.zip
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.cxx2
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();
}