Skip to content

Commit

Permalink
fix the block offset in vertical
Browse files Browse the repository at this point in the history
  • Loading branch information
ihaohong committed Sep 1, 2016
1 parent 638327e commit edee81c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BaconQrCode/Renderer/Image/Eps.php
Expand Up @@ -99,7 +99,7 @@ public function drawBackground($colorId)
public function drawBlock($x, $y, $colorId)
{
$this->setColor($colorId);
$this->eps .= $x . " " . ($this->finalHeight - $y) . " " . $this->blockSize . " " . $this->blockSize . " F\n";
$this->eps .= $x . " " . ($this->finalHeight - $y - $this->blockSize) . " " . $this->blockSize . " " . $this->blockSize . " F\n";
}

/**
Expand Down

0 comments on commit edee81c

Please sign in to comment.