Fixing style errors.
This commit is contained in:
parent
014aec72c2
commit
9f2c450953
@ -2511,7 +2511,7 @@ function pdf_getSizeForImage($realpath)
|
|||||||
include_once DOL_DOCUMENT_ROOT.'/core/lib/images.lib.php';
|
include_once DOL_DOCUMENT_ROOT.'/core/lib/images.lib.php';
|
||||||
$tmp = dol_getImageSize($realpath);
|
$tmp = dol_getImageSize($realpath);
|
||||||
$width = 0;
|
$width = 0;
|
||||||
$height = 0;
|
$height = 0;
|
||||||
if ($tmp['height']) {
|
if ($tmp['height']) {
|
||||||
$width = (int) round($maxheight * $tmp['width'] / $tmp['height']); // I try to use maxheight
|
$width = (int) round($maxheight * $tmp['width'] / $tmp['height']); // I try to use maxheight
|
||||||
if ($width > $maxwidth) { // Pb with maxheight, so i use maxwidth
|
if ($width > $maxwidth) { // Pb with maxheight, so i use maxwidth
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user