From 1385550c10afe5ca3ad2f8cf62ca54e9b5327047 Mon Sep 17 00:00:00 2001 From: Mariusz Krzaczkowski Date: Mon, 30 Jan 2017 12:51:38 +0100 Subject: [PATCH] Fixed https://github.com/mpdf/mpdf/issues/294 --- mpdf.php | 6 +++++- version.php | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/mpdf.php b/mpdf.php index b98de98..ccab1fc 100644 --- a/mpdf.php +++ b/mpdf.php @@ -30644,8 +30644,12 @@ function ConvertSize($size = 5, $maxsize = 0, $fontsize = false, $usefontsize = } else { $size *= $maxsize * 2; } - } else + } else { + if (is_string($size)) { + $size = 0; + } /* fix height: auto issue - https://github.com/mpdf/mpdf/issues/294 */ $size *= (25.4 / $this->dpi); //nothing == px + } return $size; } diff --git a/version.php b/version.php index d0e0bde..34846b5 100644 --- a/version.php +++ b/version.php @@ -1,5 +1,5 @@ '2017.01.30', - 'version' => '0.0.1' + 'version' => '0.0.2' ];