[Libreoffice-commits] core.git: Branch 'libreoffice-5-2' - svl/source

Eike Rathke erack at redhat.com
Mon Jul 25 14:49:58 UTC 2016


 svl/source/numbers/zforscan.cxx |   18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

New commits:
commit ee643f62a813680cdc09d557c42ef3062624eb8b
Author: Eike Rathke <erack at redhat.com>
Date:   Mon Jul 25 14:48:40 2016 +0000

    Revert "tdf#101096 Improve minute/month disambiguation"
    
    This reverts commit e9eb09d7e052e080a167102bea7eccdef8277c0b.
    
    There's a better solution to this.
    
    Change-Id: Ic4ca50af88069b6b3174da3600a77fe09c66655d
    Reviewed-on: https://gerrit.libreoffice.org/27525
    Reviewed-by: Eike Rathke <erack at redhat.com>
    Tested-by: Eike Rathke <erack at redhat.com>

diff --git a/svl/source/numbers/zforscan.cxx b/svl/source/numbers/zforscan.cxx
index e9de2fd..8dd7ba3 100644
--- a/svl/source/numbers/zforscan.cxx
+++ b/svl/source/numbers/zforscan.cxx
@@ -1150,15 +1150,15 @@ sal_Int32 ImpSvNumberformatScan::ScanType()
                 nIndexPre = PreviousKeyword(i);
                 nIndexNex = NextKeyword(i);
                 cChar = PreviousChar(i);
-                if ( nIndexPre == NF_KEY_H  || nIndexPre == NF_KEY_HH       // H | HH before M
-                  || nIndexNex == NF_KEY_S  || nIndexNex == NF_KEY_SS       // S | SS after M
-                  || ( (nIndexPre == NF_KEY_S ||  nIndexPre == NF_KEY_SS)   // S | SS before M tdf#95339
-                      && nIndexNex != NF_KEY_D  && nIndexNex != NF_KEY_DD && nIndexNex != NF_KEY_DDD && nIndexNex != NF_KEY_DDDD
-                      && nIndexNex != NF_KEY_YY && nIndexNex != NF_KEY_YYYY ) // except if day or year after M tdf#101096
-                  || ( (nIndexNex == NF_KEY_H   || nIndexNex == NF_KEY_HH ) // H | HH after M tdf#95339
-                      && nIndexPre != NF_KEY_D  && nIndexPre != NF_KEY_DD && nIndexPre != NF_KEY_DDD && nIndexPre != NF_KEY_DDDD
-                      && nIndexPre != NF_KEY_YY && nIndexPre != NF_KEY_YYYY ) // except if day or year before M tdf#101096
-                  || cChar == '['  )                                        // [M
+                if (nIndexPre == NF_KEY_H   ||      // H
+                    nIndexPre == NF_KEY_HH  ||      // HH
+                    nIndexPre == NF_KEY_S   ||      // S before M tdf#95339
+                    nIndexPre == NF_KEY_SS  ||      // SS
+                    nIndexNex == NF_KEY_H   ||      // H after M tdf#95339
+                    nIndexNex == NF_KEY_HH  ||      // HH
+                    nIndexNex == NF_KEY_S   ||      // S
+                    nIndexNex == NF_KEY_SS  ||      // SS
+                    cChar == '['  )                 // [M
                 {
                     eNewType = css::util::NumberFormat::TIME;
                     nTypeArray[i] -= 2;             // 6 -> 4, 7 -> 5


More information about the Libreoffice-commits mailing list