Author: pfg
Date: Wed May  2 18:51:11 2012
New Revision: 1333152

URL: http://svn.apache.org/viewvc?rev=1333152&view=rev
Log:
i118999 - Fix mismatch in leap year calculation.

Modified:
    incubator/ooo/trunk/main/sax/source/tools/converter.cxx

Modified: incubator/ooo/trunk/main/sax/source/tools/converter.cxx
URL: 
http://svn.apache.org/viewvc/incubator/ooo/trunk/main/sax/source/tools/converter.cxx?rev=1333152&r1=1333151&r2=1333152&view=diff
==============================================================================
--- incubator/ooo/trunk/main/sax/source/tools/converter.cxx (original)
+++ incubator/ooo/trunk/main/sax/source/tools/converter.cxx Wed May  2 18:51:11 
2012
@@ -1335,8 +1335,8 @@ readDateTimeComponent(const ::rtl::OUStr
 
 static bool lcl_isLeapYear(const sal_uInt32 nYear)
 {
-    return ((nYear % 4) == 0)
-        && !(((nYear % 100) == 0) || ((nYear % 400) == 0));
+    return (((nYear % 4 == 0) && (nYear % 100 != 0)) ||
+       (nYear % 400 == 0));
 }
 
 static sal_uInt16


Reply via email to