Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
#5860 initialize variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaap van Otterdijk committed Feb 24, 2014
1 parent 7355671 commit 9e6ae9c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/Zend/Barcode/Renderer/Pdf.php
Expand Up @@ -104,6 +104,8 @@ protected function initRenderer()
protected function drawPolygon($points, $color, $filled = true)
{
$page = $this->resource->pages[$this->page];
$x = array();
$y = array();
foreach ($points as $point) {
$x[] = $point[0] * $this->moduleSize + $this->leftOffset;
$y[] = $page->getHeight() - $point[1] * $this->moduleSize - $this->topOffset;
Expand Down

0 comments on commit 9e6ae9c

Please sign in to comment.