Skip to content

Commit

Permalink
Composer: Remove obsolete TCPDF patch
Browse files Browse the repository at this point in the history
  • Loading branch information
mjansenDatabay committed Sep 13, 2023
1 parent 97b309d commit fa1d006
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions libs/composer/patches/tcpdf.patch
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
Expand Down

0 comments on commit fa1d006

Please sign in to comment.