From 6c0e79a3124eac1a6446c71d62b5571dc541ed99 Mon Sep 17 00:00:00 2001 From: nicolaasuni Date: Wed, 16 Feb 2011 18:17:56 +0100 Subject: [PATCH] 5.9.054 --- CHANGELOG.TXT | 3 +++ README.TXT | 2 +- tcpdf.php | 12 +++++++----- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.TXT b/CHANGELOG.TXT index e5b8209..566f904 100755 --- a/CHANGELOG.TXT +++ b/CHANGELOG.TXT @@ -1,3 +1,6 @@ +5.9.054 (2011-02-16) + - A bug related to HTML table page break was fixed. + 5.9.053 (2011-02-16) - Support for HTMl attribute display="none" was added. diff --git a/README.TXT b/README.TXT index 45af7ed..e0705ef 100755 --- a/README.TXT +++ b/README.TXT @@ -8,7 +8,7 @@ http://sourceforge.net/donate/index.php?group_id=128076 ------------------------------------------------------------ Name: TCPDF -Version: 5.9.053 +Version: 5.9.054 Release date: 2011-02-16 Author: Nicola Asuni diff --git a/tcpdf.php b/tcpdf.php index a3bebf3..8a417d1 100755 --- a/tcpdf.php +++ b/tcpdf.php @@ -1,7 +1,7 @@ * @package com.tecnick.tcpdf * @author Nicola Asuni - * @version 5.9.053 + * @version 5.9.054 */ // Main configuration file. Define the K_TCPDF_EXTERNAL_CONFIG constant to skip this file. @@ -146,7 +146,7 @@ require_once(dirname(__FILE__).'/config/tcpdf_config.php'); * TCPDF project (http://www.tcpdf.org) has been originally derived in 2002 from the Public Domain FPDF class by Olivier Plathey (http://www.fpdf.org), but now is almost entirely rewritten.
* @package com.tecnick.tcpdf * @brief PHP class for generating PDF documents without requiring external extensions. - * @version 5.9.053 + * @version 5.9.054 * @author Nicola Asuni - info@tecnick.com */ class TCPDF { @@ -157,7 +157,7 @@ class TCPDF { * Current TCPDF version. * @private */ - private $tcpdf_version = '5.9.053'; + private $tcpdf_version = '5.9.054'; // Protected properties @@ -21595,12 +21595,14 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value: if (isset($this->theadMargins['top'])) { // restore top margin $this->tMargin = $this->theadMargins['top']; - $this->pagedim[$this->page]['tm'] = $this->tMargin; } if (!isset($table_el['attribute']['nested']) OR ($table_el['attribute']['nested'] != 'true')) { // reset main table header $this->thead = ''; $this->theadMargins = array(); + if (isset($this->theadMargins['top'])) { + $this->pagedim[$this->page]['tm'] = $this->tMargin; + } } } $parent = $table_el;