Skip to content

Commit

Permalink
Invoice: Generates logo at any size in center of header.
Browse files Browse the repository at this point in the history
  • Loading branch information
AntikCz committed Mar 3, 2016
1 parent c0e063e commit 41f0047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ protected function initialize() {
$size = @getimagesize($this->company->getLogo());

if ($size) {
$this->image->insert($this->company->getLogo(), 'top-left', (int) ((980 - $size[0]) / 2), 50);
$this->image->insert($this->company->getLogo(), 'top-left', (int) ((980 - $size[0]) / 2), (int) ((186 - $size[1]) / 2));
}
}

Expand Down

0 comments on commit 41f0047

Please sign in to comment.