X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/ba224fe1e6f6212651818538d7770690d821bfe0..06cd54ffd3f4a2641a10db316fb08d42c3b8b5ea:/lib/MECON/PDF/Tabla.php?ds=inline 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);