Issue 411

git-svn-id: https://zxing.googlecode.com/svn/trunk@1375 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2010-05-19 18:36:59 +00:00
parent 26d3441a9d
commit cd06f524d8

View file

@ -121,10 +121,10 @@ public class QRCodeReader implements Reader {
// And now find where the rightmost black module on the first row ends
int rowEndOfSymbol = width - 1;
while (rowEndOfSymbol >= 0 && !image.get(rowEndOfSymbol, y)) {
while (rowEndOfSymbol > x && !image.get(rowEndOfSymbol, y)) {
rowEndOfSymbol--;
}
if (rowEndOfSymbol < 0) {
if (rowEndOfSymbol <= x) {
throw NotFoundException.getNotFoundInstance();
}
rowEndOfSymbol++;