From 11d1bdbb8ae50ae6c5f23da47e6492e617427abd Mon Sep 17 00:00:00 2001 From: Janus Troelsen Date: Wed, 19 Nov 2014 15:57:57 +0100 Subject: [PATCH] Swap col and row in SVG output so that the display equals the PNG output --- qrcode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qrcode.js b/qrcode.js index 1980d68..5507c15 100644 --- a/qrcode.js +++ b/qrcode.js @@ -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); }