From 489fed96ca49bbd953b800ceb722a13b791901c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4chler?= Date: Mon, 17 Sep 2018 18:56:51 +0200 Subject: [PATCH] Fixes MultiCell not working with negative y values --- tcpdf.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tcpdf.php b/tcpdf.php index b2c8ceb..f672fe1 100644 --- a/tcpdf.php +++ b/tcpdf.php @@ -5769,10 +5769,9 @@ class TCPDF { $this->resetLastH(); } if (!TCPDF_STATIC::empty_string($y)) { - $this->SetY($y); - } else { - $y = $this->GetY(); + $this->SetY($y); // set y in order to convert negative y values to positive ones } + $y = $this->GetY(); $resth = 0; if (($h > 0) AND $this->inPageBody() AND (($y + $h + $mc_margin['T'] + $mc_margin['B']) > $this->PageBreakTrigger)) { // spit cell in more pages/columns