diff --git a/CHANGELOG.TXT b/CHANGELOG.TXT index fd517d9..ddfff06 100644 --- a/CHANGELOG.TXT +++ b/CHANGELOG.TXT @@ -1,3 +1,6 @@ +6.0.058 (2014-01-31) + - Bug #886 "Bugs with SVG using and " was fixed. + 6.0.057 (2014-01-26) - Bug #883 "Parsing error" was fixed. diff --git a/README.TXT b/README.TXT index 50d74d1..07cbc6c 100644 --- a/README.TXT +++ b/README.TXT @@ -8,8 +8,8 @@ http://sourceforge.net/donate/index.php?group_id=128076 ------------------------------------------------------------ Name: TCPDF -Version: 6.0.057 -Release date: 2014-01-26 +Version: 6.0.058 +Release date: 2014-01-31 Author: Nicola Asuni Copyright (c) 2002-2014: diff --git a/composer.json b/composer.json index d6638b1..cdc4d48 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "tecnick.com/tcpdf", - "version": "6.0.057", + "version": "6.0.058", "homepage": "http://www.tcpdf.org/", "type": "library", "description": "TCPDF is a PHP class for generating PDF documents.", diff --git a/include/tcpdf_static.php b/include/tcpdf_static.php index f4bb878..8176fc7 100644 --- a/include/tcpdf_static.php +++ b/include/tcpdf_static.php @@ -55,7 +55,7 @@ class TCPDF_STATIC { * Current TCPDF version. * @private static */ - private static $tcpdf_version = '6.0.057'; + private static $tcpdf_version = '6.0.058'; /** * String alias for total number of pages. diff --git a/tcpdf.php b/tcpdf.php index cb80f9f..090ec0d 100644 --- a/tcpdf.php +++ b/tcpdf.php @@ -1,9 +1,9 @@ * @package com.tecnick.tcpdf * @author Nicola Asuni - * @version 6.0.057 + * @version 6.0.058 */ // TCPDF configuration @@ -128,7 +128,7 @@ require_once(dirname(__FILE__).'/include/tcpdf_static.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 6.0.057 + * @version 6.0.058 * @author Nicola Asuni - info@tecnick.com */ class TCPDF { @@ -24153,6 +24153,9 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value: if (empty($child_element['attribs']['closing_tag'])) { $this->startSVGElementHandler('child-tag', $child_element['name'], $child_element['attribs']); } else { + if (isset($child_element['attribs']['content'])) { + $this->svgtext = $child_element['attribs']['content']; + } $this->endSVGElementHandler('child-tag', $child_element['name']); } } @@ -24174,12 +24177,12 @@ Putting 1 is equivalent to putting 0 and calling Ln() just after. Default value: if (isset($this->svgdefs[$last_svgdefs_id]['attribs']['child_elements'])) { foreach($this->svgdefs[$last_svgdefs_id]['attribs']['child_elements'] as $child_element) { if (isset($child_element['attribs']['id']) AND ($child_element['name'] == $name)) { - $this->svgdefs[$last_svgdefs_id]['attribs']['child_elements'][$child_element['attribs']['id'].'_CLOSE'] = array('name' => $name, 'attribs' => array('closing_tag' => TRUE)); + $this->svgdefs[$last_svgdefs_id]['attribs']['child_elements'][$child_element['attribs']['id'].'_CLOSE'] = array('name' => $name, 'attribs' => array('closing_tag' => TRUE, 'content' => $this->svgtext)); return; } } if ($this->svgdefs[$last_svgdefs_id]['name'] == $name) { - $this->svgdefs[$last_svgdefs_id]['attribs']['child_elements'][$last_svgdefs_id.'_CLOSE'] = array('name' => $name, 'attribs' => array('closing_tag' => TRUE)); + $this->svgdefs[$last_svgdefs_id]['attribs']['child_elements'][$last_svgdefs_id.'_CLOSE'] = array('name' => $name, 'attribs' => array('closing_tag' => TRUE, 'content' => $this->svgtext)); return; } }