2
0
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:
Laurent Destailleur
2012-04-01 23:57:15 +02:00
parent cf68414b21
commit 46251db167
18 changed files with 211 additions and 15 deletions

View File

@@ -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
{