mirror of
https://github.com/zxing/zxing.git
synced 2024-11-10 04:54:04 -08:00
Address a small but clear bug in detector logic
git-svn-id: https://zxing.googlecode.com/svn/trunk@678 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
41a386f04c
commit
5f817c69b6
|
@ -287,6 +287,7 @@ public final class Detector {
|
|||
}
|
||||
}
|
||||
}
|
||||
start++;
|
||||
|
||||
// Then try right/down
|
||||
int end = center;
|
||||
|
@ -305,6 +306,7 @@ public final class Detector {
|
|||
}
|
||||
}
|
||||
}
|
||||
end--;
|
||||
|
||||
if (end > start) {
|
||||
return new int[] { start, end };
|
||||
|
|
Loading…
Reference in a new issue