mirror of
https://github.com/zxing/zxing.git
synced 2024-11-10 04:54:04 -08:00
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:
parent
82960ff8c7
commit
a620bcbc45
|
@ -162,8 +162,9 @@ public final class GenericMultipleBarcodeReader implements MultipleBarcodeReader
|
||||||
ResultPoint oldPoint = oldResultPoints[i];
|
ResultPoint oldPoint = oldResultPoints[i];
|
||||||
newResultPoints[i] = new ResultPoint(oldPoint.getX() + xOffset, oldPoint.getY() + yOffset);
|
newResultPoints[i] = new ResultPoint(oldPoint.getX() + xOffset, oldPoint.getY() + yOffset);
|
||||||
}
|
}
|
||||||
return new Result(result.getText(), result.getRawBytes(), newResultPoints,
|
Result newResult = new Result(result.getText(), result.getRawBytes(), newResultPoints, result.getBarcodeFormat());
|
||||||
result.getBarcodeFormat());
|
newResult.putAllMetadata(result.getResultMetadata());
|
||||||
|
return newResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue