Skip to content

Commit

Permalink
Merge pull request #605 from vhtkrk/master
Browse files Browse the repository at this point in the history
Fix mirrored QR code reading due to BitMatrixParser.remask() always failing
  • Loading branch information
werthdavid authored Jun 13, 2024
2 parents ba2e1ac + 6c86574 commit 87ddfae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qrcode/decoder/BitMatrixParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export default class BitMatrixParser {
if (this.parsedFormatInfo === null) {
return; // We have no format information, and have no data mask
}
const dataMask = DataMask.values[this.parsedFormatInfo.getDataMask()];
const dataMask = DataMask.values.get(this.parsedFormatInfo.getDataMask());
const dimension = this.bitMatrix.getHeight();
dataMask.unmaskBitMatrix(this.bitMatrix, dimension);
}
Expand Down

0 comments on commit 87ddfae

Please sign in to comment.