Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TDecoderResult.Destroy - ByteSegments should not be cleared #153

Closed
JedrzejczykRobert opened this issue Jul 13, 2023 · 0 comments
Closed

Comments

@JedrzejczykRobert
Copy link

file: ZXing.DecoderResult;
lines: 79-81

code:

  if Assigned(ByteSegments)
  then
     ByteSegments.Clear;

should be removed, because Count is 0, after extracted from result meta, for example:

if rs.ResultMetaData.ContainsKey(TResultMetaDataType.BYTE_SEGMENTS)  then
begin
  obj := rs.ResultMetaData.Items[TResultMetaDataType.BYTE_SEGMENTS];
  if Supports(obj, IByteSegmentsMetadata, bytesMetadata) then
  begin
    bytesMetadata.Value.Count; // Count is 0
  end;
end;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants