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