diff options
author | Eike Rathke <erack@redhat.com> | 2012-01-17 17:57:37 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2012-01-17 17:57:37 +0100 |
commit | 0f1fc0dfea41b7c74565683ba13e0dfc9177c7e5 (patch) | |
tree | 23ce3f482ff27755f62054e587a2ce1a6d7ac0d9 /svl | |
parent | rudimentary check if date acceptance pattern interferes with decimal number (diff) | |
download | core-0f1fc0dfea41b7c74565683ba13e0dfc9177c7e5.tar.gz core-0f1fc0dfea41b7c74565683ba13e0dfc9177c7e5.zip |
a can't-happen-but-do-it-correct-anyway one character fix
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/numbers/zforfind.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svl/source/numbers/zforfind.cxx b/svl/source/numbers/zforfind.cxx index d944a119a6cd..0835278e656f 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; |