diff --git a/CHANGELOG.TXT b/CHANGELOG.TXT index 51667de..e412586 100755 --- a/CHANGELOG.TXT +++ b/CHANGELOG.TXT @@ -1,3 +1,6 @@ +5.9.100 (2011-06-29) + - An SVG bug has been fixed. + 5.9.099 (2011-06-27) - Bug item #3335045 "Font freesans seems somehow corrupted in footer" was fixed. diff --git a/README.TXT b/README.TXT index 2930836..e3f7ac6 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.099 -Release date: 2011-06-27 +Version: 5.9.100 +Release date: 2011-06-29 Author: Nicola Asuni Copyright (c) 2002-2011: diff --git a/tcpdf.php b/tcpdf.php index 6661702..831d95a 100755 --- a/tcpdf.php +++ b/tcpdf.php @@ -1,9 +1,9 @@ * @package com.tecnick.tcpdf * @author Nicola Asuni - * @version 5.9.099 + * @version 5.9.100 */ // 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.099 + * @version 5.9.100 * @author Nicola Asuni - info@tecnick.com */ class TCPDF { @@ -157,7 +157,7 @@ class TCPDF { * Current TCPDF version. * @private */ - private $tcpdf_version = '5.9.099'; + private $tcpdf_version = '5.9.100'; // Protected properties @@ -26135,6 +26135,7 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value: $ymax = 0; $relcoord = false; $minlen = (0.01 / $this->k); // minimum acceptable lenght (3 point) + $firstcmd = true; // used to print first point // draw curve pieces foreach ($paths as $key => $val) { // get curve type @@ -26172,9 +26173,10 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value: $x = $cp + $xoffset; } else { $y = $cp + $yoffset; - if ((abs($x0 - $x) >= $minlen) OR (abs($y0 - $y) >= $minlen)) { + if ($firstcmd OR (abs($x0 - $x) >= $minlen) OR (abs($y0 - $y) >= $minlen)) { if ($ck == 1) { $this->_outPoint($x, $y); + $firstcmd = false; } else { $this->_outLine($x, $y); } @@ -26445,6 +26447,7 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value: break; } } + $firstcmd = false; } // end foreach if (!empty($op)) { $this->_out($op);