[Libreoffice-commits] core.git: Branch 'libreoffice-6-0' - svl/source
Eike Rathke
erack at redhat.com
Wed Feb 21 20:35:50 UTC 2018
svl/source/numbers/zforfind.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit d1a4f50d686054b757320c0ef3f3dc4c724c685c
Author: Eike Rathke <erack at redhat.com>
Date: Fri Feb 16 12:18:05 2018 +0100
Resolves: tdf#114833 do not officiously force Y-M-D if D-M-Y is applicable
Change-Id: Idbfecf0ff08843db9970a301ab3c3a7317c08cda
(cherry picked from commit 2448e6cfeb787ae37cdadd7d6181e723b7024d27)
Reviewed-on: https://gerrit.libreoffice.org/49849
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/svl/source/numbers/zforfind.cxx b/svl/source/numbers/zforfind.cxx
index 7e4f3f69e128..2e655311d6a4 100644
--- a/svl/source/numbers/zforfind.cxx
+++ b/svl/source/numbers/zforfind.cxx
@@ -1070,7 +1070,9 @@ bool ImpSvNumberInputScan::CanForceToIso8601( DateOrder eDateOrder )
{
// As if any of the cases below can be applied, but only if a
// locale dependent date pattern was not matched.
- return (GetDatePatternNumbers() != nNumericsCnt) || !IsDatePatternNumberOfType(0,'Y');
+ if ((GetDatePatternNumbers() == nNumericsCnt) && IsDatePatternNumberOfType(0,'Y'))
+ return false;
+ eDateOrder = GetDateOrder();
}
nCanForceToIso8601 = 1;
More information about the Libreoffice-commits
mailing list