forked from Wavyzz/dolibarr
Qual: Use a shared function to define logo heigth.
Qual: Add more phpunit tests Fix: This also solve overlapping logos.
This commit is contained in:
@@ -351,7 +351,8 @@ class pdf_baleine extends ModelePDFProjects
|
||||
{
|
||||
if (is_readable($logo))
|
||||
{
|
||||
$pdf->Image($logo, $this->marge_gauche, $posy, 0, 22); // width=0 (auto), max height=22
|
||||
$height=pdf_getHeightForLogo($logo);
|
||||
$pdf->Image($logo, $this->marge_gauche, $posy, 0, $height); // width=0 (auto)
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user