From 5fb7bbdc8312ed91e7357a138171b0624a90f8eb Mon Sep 17 00:00:00 2001 From: nick Date: Wed, 26 Oct 2011 20:50:21 +0100 Subject: [PATCH] 5.9.133 --- CHANGELOG.TXT | 3 +++ README.TXT | 4 ++-- tcpdf.php | 20 ++++++++++---------- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.TXT b/CHANGELOG.TXT index 70d3146..f4942ff 100755 --- a/CHANGELOG.TXT +++ b/CHANGELOG.TXT @@ -1,3 +1,6 @@ +5.9.133 (2011-10-26) + - Bug item #3428446 "copyPage method not working when diskcache enabled" was fixed. + 5.9.132 (2011-10-20) - Bug item #3426167 "bug in function convertHTMLColorToDec()" was fixed. diff --git a/README.TXT b/README.TXT index 012fb69..7a3ab8b 100755 --- a/README.TXT +++ b/README.TXT @@ -8,8 +8,8 @@ http://sourceforge.net/donate/index.php?group_id=128076 ------------------------------------------------------------ Name: TCPDF -Version: 5.9.132 -Release date: 2011-10-20 +Version: 5.9.133 +Release date: 2011-10-26 Author: Nicola Asuni Copyright (c) 2002-2011: diff --git a/tcpdf.php b/tcpdf.php index 8929a8d..b9a1772 100755 --- a/tcpdf.php +++ b/tcpdf.php @@ -1,9 +1,9 @@ * @package com.tecnick.tcpdf * @author Nicola Asuni - * @version 5.9.132 + * @version 5.9.133 */ // Main configuration file. Define the K_TCPDF_EXTERNAL_CONFIG constant to skip this file. @@ -149,7 +149,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.132 + * @version 5.9.133 * @author Nicola Asuni - info@tecnick.com */ class TCPDF { @@ -160,7 +160,7 @@ class TCPDF { * Current TCPDF version. * @private */ - private $tcpdf_version = '5.9.132'; + private $tcpdf_version = '5.9.133'; // Protected properties @@ -25244,7 +25244,7 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value: $this->endPage(); } // move all page-related states - $tmppage = $this->pages[$frompage]; + $tmppage = $this->getPageBuffer($frompage); $tmppagedim = $this->pagedim[$frompage]; $tmppagelen = $this->pagelen[$frompage]; $tmpintmrk = $this->intmrk[$frompage]; @@ -25279,7 +25279,7 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value: for ($i = $frompage; $i > $topage; --$i) { $j = $i - 1; // shift pages down - $this->pages[$i] = $this->pages[$j]; + $this->setPageBuffer($i, $this->getPageBuffer($j)); $this->pagedim[$i] = $this->pagedim[$j]; $this->pagelen[$i] = $this->pagelen[$j]; $this->intmrk[$i] = $this->intmrk[$j]; @@ -25313,7 +25313,7 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value: $this->currpagegroup = $i; } } - $this->pages[$topage] = $tmppage; + $this->setPageBuffer($topage, $tmppage); $this->pagedim[$topage] = $tmppagedim; $this->pagelen[$topage] = $tmppagelen; $this->intmrk[$topage] = $tmpintmrk; @@ -25434,7 +25434,7 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value: for ($i = $page; $i < $this->numpages; ++$i) { $j = $i + 1; // shift pages - $this->pages[$i] = $this->pages[$j]; + $this->setPageBuffer($i, $this->getPageBuffer($j)); $this->pagedim[$i] = $this->pagedim[$j]; $this->pagelen[$i] = $this->pagelen[$j]; $this->intmrk[$i] = $this->intmrk[$j]; @@ -25575,7 +25575,7 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value: // copy all page-related states ++$this->numpages; $this->page = $this->numpages; - $this->pages[$this->page] = $this->pages[$page]; + $this->setPageBuffer($this->page, $this->getPageBuffer($page)); $this->pagedim[$this->page] = $this->pagedim[$page]; $this->pagelen[$this->page] = $this->pagelen[$page]; $this->intmrk[$this->page] = $this->intmrk[$page];