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:
srowen 2012-03-02 18:53:19 +00:00
parent b43bea0376
commit b9cd318822

View file

@ -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;