mirror of https://github.com/status-im/qzxing.git
reultpoints fix
This commit is contained in:
parent
10b4dbbb51
commit
dcb75f7210
|
@ -10,7 +10,7 @@ FinderPattern::FinderPattern(int value, std::vector<int> startEnd, int start, in
|
|||
{
|
||||
ArrayRef< Ref<ResultPoint> > resultPoints(2);
|
||||
resultPoints[0] = Ref<ResultPoint>(new OneDResultPoint(start, rowNumber));
|
||||
resultPoints[0] = Ref<ResultPoint>(new OneDResultPoint(end, rowNumber));
|
||||
resultPoints[1] = Ref<ResultPoint>(new OneDResultPoint(end, rowNumber));
|
||||
m_resultPoints = resultPoints;
|
||||
}
|
||||
|
||||
|
|
|
@ -110,7 +110,12 @@ Ref<Result> RSS14Reader::constructResult(Pair leftPair, Pair rightPair) const
|
|||
|
||||
ArrayRef< Ref<ResultPoint> > leftPoints = leftPair.getFinderPattern().getResultPoints();
|
||||
ArrayRef< Ref<ResultPoint> > rightPoints = rightPair.getFinderPattern().getResultPoints();
|
||||
ArrayRef< Ref<ResultPoint> > resultPoints(5);
|
||||
|
||||
ArrayRef< Ref<ResultPoint> > resultPoints(4);
|
||||
resultPoints[0] = leftPoints[0];
|
||||
resultPoints[1] = leftPoints[1];
|
||||
resultPoints[2] = rightPoints[0];
|
||||
resultPoints[3] = rightPoints[1];
|
||||
|
||||
return Ref<Result>(new Result(
|
||||
Ref<String>(new String(buffer)),
|
||||
|
|
Loading…
Reference in New Issue