Skip to content

Commit

Permalink
ImageSVG() does not calculate the correct w/h values anymore.
Browse files Browse the repository at this point in the history
The bug appeared in 6.0.031 and was caused by the
'avoid "division by zero"' part of commit: 0c26f23
The fix, for me, is to remove the div_by_zero mitigation.
  • Loading branch information
d-javu committed Apr 23, 2024
1 parent 951eabf commit 91ab8e4
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tcpdf.php
Expand Up @@ -23034,12 +23034,6 @@ public function ImageSVG($file, $x=null, $y=null, $w=0, $h=0, $link='', $align='
}
}
}
if ($ow <= 0) {
$ow = 1;
}
if ($oh <= 0) {
$oh = 1;
}
// calculate image width and height on document
if (($w <= 0) AND ($h <= 0)) {
// convert image size to document unit
Expand Down

0 comments on commit 91ab8e4

Please sign in to comment.