mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
Issue 1188 fix nudge, to avoid exception in extreme images
git-svn-id: https://zxing.googlecode.com/svn/trunk@2210 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
b43bea0376
commit
b9cd318822
|
@ -138,7 +138,7 @@ public class QRCodeReader implements Reader {
|
|||
// 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
|
||||
// little off, this will help recover.
|
||||
int nudge = Math.round(moduleSize / 2.0f);
|
||||
int nudge = (int) (moduleSize / 2.0f);
|
||||
top += nudge;
|
||||
left += nudge;
|
||||
|
||||
|
|
Loading…
Reference in a new issue