[Libreoffice-commits] .: svl/source

Eike Rathke erack at kemper.freedesktop.org
Tue Jan 17 08:58:20 PST 2012


 svl/source/numbers/zforfind.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 0f1fc0dfea41b7c74565683ba13e0dfc9177c7e5
Author: Eike Rathke <erack at redhat.com>
Date:   Tue Jan 17 17:57:37 2012 +0100

    a can't-happen-but-do-it-correct-anyway one character fix

diff --git a/svl/source/numbers/zforfind.cxx b/svl/source/numbers/zforfind.cxx
index d944a11..0835278 100644
--- a/svl/source/numbers/zforfind.cxx
+++ b/svl/source/numbers/zforfind.cxx
@@ -991,7 +991,7 @@ bool ImpSvNumberInputScan::MayBeIso8601()
                     (n = sStrArray[nNums[2]].ToInt32()) >= 1 && n <= 31)    // day
                 // Year (nNums[0]) value not checked, may be anything, but
                 // length (number of digits) is checked.
-                nMayBeIso8601 = (nLen >= 4 ? 4 : (nLen == 3 ? 3 : (nLen > 0 ? 2 : 0)));
+                nMayBeIso8601 = (nLen >= 4 ? 4 : (nLen == 3 ? 3 : (nLen > 0 ? 2 : 1)));
         }
     }
     return nMayBeIso8601 > 1;


More information about the Libreoffice-commits mailing list