mirror of
https://github.com/zxing/zxing.git
synced 2024-11-10 04:54:04 -08:00
Issue 735 commit user patch for AAIOBE
git-svn-id: https://zxing.googlecode.com/svn/trunk@1723 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
0aeafb7fbd
commit
9e8fb1e2ff
|
@ -118,6 +118,10 @@ public class QRCodeReader implements Reader {
|
||||||
if (matrixWidth == 0 || matrixHeight == 0) {
|
if (matrixWidth == 0 || matrixHeight == 0) {
|
||||||
throw NotFoundException.getNotFoundInstance();
|
throw NotFoundException.getNotFoundInstance();
|
||||||
}
|
}
|
||||||
|
if (matrixHeight != matrixWidth) {
|
||||||
|
// Only possibly decode square regions
|
||||||
|
throw NotFoundException.getNotFoundInstance();
|
||||||
|
}
|
||||||
|
|
||||||
// Push in the "border" by half the module width so that we start
|
// Push in the "border" by half the module width so that we start
|
||||||
// sampling in the middle of the module. Just in case the image is a
|
// sampling in the middle of the module. Just in case the image is a
|
||||||
|
|
Loading…
Reference in a new issue