Skip to content

Commit

Permalink
Updated fix for compatability with Delphi 10.2 version: #143
Browse files Browse the repository at this point in the history
  • Loading branch information
E Spelt committed Sep 9, 2023
1 parent 190561c commit f190cfa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Lib/Classes/Common/ZXing.ReadResult.pas
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ procedure TReadResult.putAllMetaData(const metaData: TResultMetadata);

procedure TReadResult.addResultPoints(const newPoints: TArray<IResultPoint>);
var
oldPoints: TArray<IResultPoint>;
oldPoints, allPoints: TArray<IResultPoint>;
begin
oldPoints := FResultPoints;
if (oldPoints = nil) then
Expand All @@ -333,7 +333,8 @@ procedure TReadResult.addResultPoints(const newPoints: TArray<IResultPoint>);
begin
if (newPoints <> nil) and (Length(newPoints) > 0) then
begin
FResultPoints := TArray.Concat<IResultPoint>([FResultPoints, newPoints]);
TArray.Copy<IResultPoint>(oldPoints, allPoints, 0, 0, Length(oldPoints));
TArray.Copy<IResultPoint>(newPoints, allPoints, 0, Length(oldPoints), Length(newPoints));
end;
end;
end;
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f190cfa

Please sign in to comment.