[Libreoffice-commits] core.git: Branch 'libreoffice-4-3' - svl/source

Eike Rathke erack at redhat.com
Fri Jun 6 04:43:32 PDT 2014


 svl/source/numbers/zforfind.cxx |   11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

New commits:
commit 2f268cc14b3e3eab16b6bacf546431122acfdb7a
Author: Eike Rathke <erack at redhat.com>
Date:   Fri Jun 6 13:31:03 2014 +0200

    resolved fdo#79719 recognize ##-MMM-## as date even if ambiguous
    
    Force ##-MMM-## to be ##-MMM-#### if the first number is a day value.
    
    Note that the previous implementation of
    (bDay1 && bDay2 && ((bYear1 && !bYear2) || (!bYear1 && bYear2)))
    never matched anyway as the detection of bDay1 and bDay2 were changed to
    only yield true if bYear1==false or bYear2==false.
    
    Change-Id: If6bb6d3e1757015552eaa81c1f58d53c0794846e
    (cherry picked from commit a6992cd0d7c085ba05877e6f68ac0650dd09010f)

diff --git a/svl/source/numbers/zforfind.cxx b/svl/source/numbers/zforfind.cxx
index cca342f..d63fd56 100644
--- a/svl/source/numbers/zforfind.cxx
+++ b/svl/source/numbers/zforfind.cxx
@@ -1140,14 +1140,9 @@ bool ImpSvNumberInputScan::MayBeMonthDate()
                 }
                 else if (bDay1 && bDay2)
                 {
-                    if (bYear1 && !bYear2)
-                    {
-                        nMayBeMonthDate = 3;    // yy-month-dd
-                    }
-                    else if (!bYear1 && bYear2)
-                    {
-                        nMayBeMonthDate = 2;    // dd-month-yy
-                    }
+                    // Ambiguous ##-MMM-## date, but some big vendor's database
+                    // reports write this crap, assume this always to be
+                    nMayBeMonthDate = 2;        // dd-month-yy
                 }
             }
         }


More information about the Libreoffice-commits mailing list