diff --git a/libraries/tcpdf/README.TXT b/libraries/tcpdf/README.TXT
index 18d6974591..a20a2c9fee 100644
--- a/libraries/tcpdf/README.TXT
+++ b/libraries/tcpdf/README.TXT
@@ -8,8 +8,8 @@ http://sourceforge.net/donate/index.php?group_id=128076
------------------------------------------------------------
Name: TCPDF
-Version: 6.0.037
-Release date: 2013-09-30
+Version: 6.0.039
+Release date: 2013-10-13
Author: Nicola Asuni
Copyright (c) 2002-2013:
diff --git a/libraries/tcpdf/include/tcpdf_static.php b/libraries/tcpdf/include/tcpdf_static.php
index ee4bcb7bea..6e2f15f72a 100644
--- a/libraries/tcpdf/include/tcpdf_static.php
+++ b/libraries/tcpdf/include/tcpdf_static.php
@@ -55,7 +55,7 @@ class TCPDF_STATIC {
* Current TCPDF version.
* @private static
*/
- private static $tcpdf_version = '6.0.037';
+ private static $tcpdf_version = '6.0.039';
/**
* String alias for total number of pages.
diff --git a/libraries/tcpdf/tcpdf.php b/libraries/tcpdf/tcpdf.php
index aefdd556ec..c8fd9846f1 100644
--- a/libraries/tcpdf/tcpdf.php
+++ b/libraries/tcpdf/tcpdf.php
@@ -1,9 +1,9 @@
* @package com.tecnick.tcpdf
* @author Nicola Asuni
- * @version 6.0.037
+ * @version 6.0.039
*/
// 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.037
+ * @version 6.0.039
* @author Nicola Asuni - info@tecnick.com
*/
class TCPDF {
@@ -3656,7 +3656,7 @@ class TCPDF {
* Returns the array of spot colors.
* @return (array) Spot colors array.
* @public
- * @since 6.0.037 (2013-09-30)
+ * @since 6.0.038 (2013-09-30)
*/
public function getAllSpotColors() {
return $this->spot_colors;
@@ -11671,6 +11671,9 @@ class TCPDF {
* @since 4.9.019 (2010-04-26)
*/
protected function _outellipticalarc($xc, $yc, $rx, $ry, $xang=0, $angs=0, $angf=360, $pie=false, $nc=2, $startpoint=true, $ccw=true, $svg=false) {
+ if (($rx <= 0) OR ($ry < 0)) {
+ return;
+ }
$k = $this->k;
if ($nc < 2) {
$nc = 2;
@@ -14170,7 +14173,7 @@ class TCPDF {
* @param $y (float) ordinate of the registration mark center.
* @param $r (float) radius of the crop mark.
* @author Nicola Asuni
- * @since 6.0.037 (2013-09-30)
+ * @since 6.0.038 (2013-09-30)
* @public
*/
public function registrationMarkCMYK($x, $y, $r) {
@@ -16290,6 +16293,8 @@ class TCPDF {
$html = preg_replace('/'.$this->re_space['p'].'+/'.$this->re_space['m'], chr(32), $html); // replace multiple spaces with a single space
// trim string
$html = $this->stringTrim($html);
+ // fix br tag after li
+ $html = preg_replace('/