Issue 1659 carry through metadata on multiple barcodes

git-svn-id: https://zxing.googlecode.com/svn/trunk@2619 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen@gmail.com 2013-04-05 09:48:17 +00:00
parent 82960ff8c7
commit a620bcbc45

View file

@ -162,8 +162,9 @@ public final class GenericMultipleBarcodeReader implements MultipleBarcodeReader
ResultPoint oldPoint = oldResultPoints[i];
newResultPoints[i] = new ResultPoint(oldPoint.getX() + xOffset, oldPoint.getY() + yOffset);
}
return new Result(result.getText(), result.getRawBytes(), newResultPoints,
result.getBarcodeFormat());
Result newResult = new Result(result.getText(), result.getRawBytes(), newResultPoints, result.getBarcodeFormat());
newResult.putAllMetadata(result.getResultMetadata());
return newResult;
}
}