Skip to content

Commit

Permalink
Merge pull request davidshimjs#44 from ysangkok/patch-1
Browse files Browse the repository at this point in the history
Swap col and row in SVG output so that the display equals the PNG output
  • Loading branch information
davidshimjs committed Jul 27, 2015
2 parents 3c1663d + 11d1bdb commit 3e8a59f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qrcode.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ var QRCode;
for (var row = 0; row < nCount; row++) {
for (var col = 0; col < nCount; col++) {
if (oQRCode.isDark(row, col)) {
var child = makeSVG("use", {"x": String(row), "y": String(col)});
var child = makeSVG("use", {"x": String(col), "y": String(row)});
child.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#template")
svg.appendChild(child);
}
Expand Down

0 comments on commit 3e8a59f

Please sign in to comment.