Merge pull request #95 from maechler/master

Fixes MultiCell not working with negative y values
This commit is contained in:
Nicola Asuni 2018-09-22 10:37:47 +01:00 committed by GitHub
commit b6651409f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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