Skip to content

Commit

Permalink
Applied fix found by BrainforgeUK in Issue #564 (#620)
Browse files Browse the repository at this point in the history
Tested and confirmed working in PHP 7.4 and PHP 8.2
  • Loading branch information
kosmro committed Sep 6, 2023
1 parent f7b000d commit 70b63fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tcpdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -2461,7 +2461,7 @@ public function setLastH($h) {
*/
public function getCellHeight($fontsize, $padding=TRUE) {
$height = ($fontsize * $this->cell_height_ratio);
if ($padding) {
if ($padding && !empty($this->cell_padding)) {
$height += ($this->cell_padding['T'] + $this->cell_padding['B']);
}
return round($height, 6);
Expand Down

0 comments on commit 70b63fa

Please sign in to comment.