svtools/source/control/fmtfield.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit da4dc534403b74182913cc4dfeb2b689a30e513c
Author:     Eike Rathke <[email protected]>
AuthorDate: Fri Oct 12 18:33:00 2018 +0200
Commit:     Eike Rathke <[email protected]>
CommitDate: Fri Oct 12 22:19:26 2018 +0200

    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 <[email protected]>
    Tested-by: Jenkins

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();
 }
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to