Skip to content

Commit

Permalink
Fix best mask evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyten committed Mar 5, 2014
1 parent 42a832b commit 1364a85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/matrix.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ function getMatrix(data) {
var bestMask = 0;
for (var mask = 0; mask < 8; mask++) {
fillData(matrix, data, mask);
fillReserved(matrix, data.ec_level, mask);
var p = calculatePenalty(matrix);
if (p < penalty) {
penalty = p;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"homepage": "https://github.com/alexeyten/qr-image",
"keywords": [ "qrcode", "qr code", "qr", "png", "svg", "image" ],
"author": {
"name": "Alexey Ten (Lynn)",
"name": "Alexey Ten",
"url": "http://git.io/alexeyten"
},
"license": "MIT",
Expand Down

0 comments on commit 1364a85

Please sign in to comment.