Merge pull request #16 from dushibaiyu/master
fix GenericMultipleBarcodeReader Segmentation fault
This commit is contained in:
commit
e7594421d2
@ -128,7 +128,7 @@ Ref<Result> GenericMultipleBarcodeReader::translateResultPoints(Ref<Result> resu
|
||||
if (oldResultPoints->empty()) {
|
||||
return result;
|
||||
}
|
||||
ArrayRef< Ref<ResultPoint> > newResultPoints;
|
||||
ArrayRef< Ref<ResultPoint> > newResultPoints(new zxing::Array< Ref<ResultPoint> >());
|
||||
for (int i = 0; i < oldResultPoints->size(); i++) {
|
||||
Ref<ResultPoint> oldPoint = oldResultPoints[i];
|
||||
newResultPoints->values().push_back(Ref<ResultPoint>(new ResultPoint(oldPoint->getX() + xOffset, oldPoint->getY() + yOffset)));
|
||||
|
Loading…
Reference in New Issue
Block a user