X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/ba224fe1e6f6212651818538d7770690d821bfe0..ab08e58537352a82e34dab0684ae5997ece1899c:/lib/MECON/PDF/Tabla.php?ds=sidebyside diff --git a/lib/MECON/PDF/Tabla.php b/lib/MECON/PDF/Tabla.php index 595019e..499c406 100644 --- a/lib/MECON/PDF/Tabla.php +++ b/lib/MECON/PDF/Tabla.php @@ -250,9 +250,15 @@ class MECON_PDF_Tabla extends MECON_PDF_Contenido { else { $ancho_columna = $attr2[$j+1] - $attr2[$j]; } - $txt = $this->_marco->wordWrap( - @$this->_tabla->getCellContents($i,$j), $ancho_columna, - $estilo); + if (@$this->_tabla->getCellContents($i,$j)) { + $txt = $this->_marco->wordWrap( + @$this->_tabla->getCellContents($i,$j), $ancho_columna, + $estilo + ); + } + else { + $txt = array (' '); + } $txtt[$j] = $txt; //Esto es para no hacer el wordWrap siempre $max = max($estilo['alto_linea'] * count($txt), $max);