Issue 1122 allow short code 39/93

git-svn-id: https://zxing.googlecode.com/svn/trunk@2114 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2012-01-11 22:09:48 +00:00
parent 73f7332f02
commit 748945281c
3 changed files with 5 additions and 5 deletions

View file

@ -431,7 +431,7 @@ public final class Code128Reader extends OneDReader {
int resultLength = result.length(); int resultLength = result.length();
if (resultLength == 0) { if (resultLength == 0) {
// false positive // false positive
throw ChecksumException.getChecksumInstance(); throw NotFoundException.getNotFoundInstance();
} }
// Only bother if the result had at least one character, and if the checksum digit happened to // Only bother if the result had at least one character, and if the checksum digit happened to

View file

@ -146,8 +146,8 @@ public final class Code39Reader extends OneDReader {
result.setLength(max); result.setLength(max);
} }
if (result.length() < 4) { if (result.length() == 0) {
// Almost surely a false positive // false positive
throw NotFoundException.getNotFoundInstance(); throw NotFoundException.getNotFoundInstance();
} }

View file

@ -88,8 +88,8 @@ public final class Code93Reader extends OneDReader {
throw NotFoundException.getNotFoundInstance(); throw NotFoundException.getNotFoundInstance();
} }
if (result.length() < 4) { if (result.length() < 2) {
// Almost surely a false positive // false positive -- need at least 2 checksum digits
throw NotFoundException.getNotFoundInstance(); throw NotFoundException.getNotFoundInstance();
} }