From fa1d006007020ae56ed43bb28f0d6003ba21c8e1 Mon Sep 17 00:00:00 2001 From: mjansen Date: Wed, 13 Sep 2023 08:16:32 +0200 Subject: [PATCH] Composer: Remove obsolete TCPDF patch --- libs/composer/patches/tcpdf.patch | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/libs/composer/patches/tcpdf.patch b/libs/composer/patches/tcpdf.patch index 42e493fe0c6b..58fbee1e87f5 100644 --- a/libs/composer/patches/tcpdf.patch +++ b/libs/composer/patches/tcpdf.patch @@ -2,25 +2,6 @@ diff --git a/tcpdf.php b/tcpdf.php index 599a3f8..e8bdf90 100644 --- a/tcpdf.php +++ b/tcpdf.php -@@ -6765,7 +6765,17 @@ class TCPDF { - } - // resize the block to be contained on the remaining available page or column space - if ($fitonpage) { -- $ratio_wh = ($w / $h); -+ // tcpdf-patch: begin -+ // 2016-06-02 mbecker will create a pull request to make this patch -+ if($h) -+ { -+ $ratio_wh = ($w / $h); -+ } -+ else -+ { -+ $ratio_wh = 1; -+ } -+ // tcpdf-patch: end - if (($y + $h) > $this->PageBreakTrigger) { - $h = $this->PageBreakTrigger - $y; - $w = ($h * $ratio_wh); @@ -18040,9 +18050,21 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value: // total table width without cellspaces $table_columns_width = ($table_width - ($cellspacing['H'] * ($dom[$key]['cols'] - 1)));