Swap col and row in SVG output so that the display equals the PNG output

master
Janus Troelsen 2014-11-19 15:57:57 +01:00
rodzic 1119361409
commit 11d1bdbb8a
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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);
}