Skip to content

Commit

Permalink
Swap col and row in SVG output so that the display equals the PNG output
Browse files Browse the repository at this point in the history
  • Loading branch information
ysangkok committed Nov 19, 2014
1 parent 1119361 commit 11d1bdb
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 11d1bdb

Please sign in to comment.