diff --git a/Lib/Classes/Common/ZXing.ReadResult.pas b/Lib/Classes/Common/ZXing.ReadResult.pas index bf22abc..d43e746 100644 --- a/Lib/Classes/Common/ZXing.ReadResult.pas +++ b/Lib/Classes/Common/ZXing.ReadResult.pas @@ -324,7 +324,7 @@ procedure TReadResult.putAllMetaData(const metaData: TResultMetadata); procedure TReadResult.addResultPoints(const newPoints: TArray); var - oldPoints: TArray; + oldPoints, allPoints: TArray; begin oldPoints := FResultPoints; if (oldPoints = nil) then @@ -333,7 +333,8 @@ procedure TReadResult.addResultPoints(const newPoints: TArray); begin if (newPoints <> nil) and (Length(newPoints) > 0) then begin - FResultPoints := TArray.Concat([FResultPoints, newPoints]); + TArray.Copy(oldPoints, allPoints, 0, 0, Length(oldPoints)); + TArray.Copy(newPoints, allPoints, 0, Length(oldPoints), Length(newPoints)); end; end; end; diff --git a/README.md b/README.md index 199f0ba..e5a9ae2 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,8 @@ The standard camera component is, I think too slow for Android and IOS. You need ### Changes +- v3.9.7 + updated fix for compatibility: https://github.com/Spelt/ZXing.Delphi/issues/143 - v3.9.6 - Lots of fixes by Robert Jedrzejczyk https://github.com/Spelt/ZXing.Delphi/issues/142, https://github.com/Spelt/ZXing.Delphi/issues/143, https://github.com/Spelt/ZXing.Delphi/issues/144, https://github.com/Spelt/ZXing.Delphi/issues/145, https://github.com/Spelt/ZXing.Delphi/issues/146, https://github.com/Spelt/ZXing.Delphi/issues/147, https://github.com/Spelt/ZXing.Delphi/issues/148, https://github.com/Spelt/ZXing.Delphi/issues/149, https://github.com/Spelt/ZXing.Delphi/issues/150, https://github.com/Spelt/ZXing.Delphi/issues/151, https://github.com/Spelt/ZXing.Delphi/issues/152, https://github.com/Spelt/ZXing.Delphi/issues/153, https://github.com/Spelt/ZXing.Delphi/issues/154, https://github.com/Spelt/ZXing.Delphi/issues/156 - v3.9.5