diff --git a/cpp/QrCode.cpp b/cpp/QrCode.cpp index f137d7d..369529c 100644 --- a/cpp/QrCode.cpp +++ b/cpp/QrCode.cpp @@ -169,8 +169,8 @@ std::string QrCode::toSvgString(int border) const { sb << "\t\n"; sb << "\t\n"); sb.append("\t diff --git a/rust/src/lib.rs b/rust/src/lib.rs index 3adf74f..8fe722c 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -249,8 +249,8 @@ impl QrCode { result += "\t\n"; result += "\t = []; - for (let y = -border; y < this.size + border; y++) { - for (let x = -border; x < this.size + border; x++) { + for (let y = 0; y < this.size; y++) { + for (let x = 0; x < this.size; x++) { if (this.getModule(x, y)) parts.push(`M${x + border},${y + border}h1v1h-1z`); }