Skip to content

Commit d151e3f

Browse files
committed
Merge branch 'piciuriello'
2 parents 4ec29e3 + 949eee5 commit d151e3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tcpdf.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6925,8 +6925,8 @@ protected function fitBlock($w, $h, $x, $y, $fitonpage=false) {
69256925
// fallback to avoid division by zero
69266926
$h = $h == 0 ? 1 : $h;
69276927
$ratio_wh = ($w / $h);
6928-
if (($y + $h) > $this->PageBreakTrigger) {
6929-
$h = $this->PageBreakTrigger - $y;
6928+
if (($y + $h) > $this->PageBreakTrigger + $this->bMargin) {
6929+
$h = $this->PageBreakTrigger + $this->bMargin - $y;
69306930
$w = ($h * $ratio_wh);
69316931
}
69326932
if ((!$this->rtl) AND (($x + $w) > ($this->w - $this->rMargin))) {

0 commit comments

Comments
 (0)