Skip to content

Commit d3eb9f9

Browse files
committed
Bugfix in SvgQRCode render for quietzone=false mode
1 parent e58ee44 commit d3eb9f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

QRCoder/SvgQRCode.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ public string GetGraphic(Size viewBox, string darkColorHex, string lightColorHex
5555
int[,] matrix = new int[drawableModulesCount, drawableModulesCount];
5656
for (int yi = 0; yi < drawableModulesCount; yi += 1)
5757
{
58-
BitArray bitArray = this.QrCodeData.ModuleMatrix[yi];
58+
BitArray bitArray = this.QrCodeData.ModuleMatrix[yi+offset];
5959

6060
int x0 = -1;
6161
int xL = 0;
6262
for (int xi = 0; xi < drawableModulesCount; xi += 1)
6363
{
6464
matrix[yi, xi] = 0;
65-
if (bitArray[xi])
65+
if (bitArray[xi+offset])
6666
{
6767
if(x0 == -1)
6868
{

0 commit comments

Comments
 (0)