for ($row = 0; $row<$this->_tabla->getRowCount(); $row++) {
for ($i=0; $i<$this->_tabla->getColCount(); $i++ ) {
$tmp = $this->_tabla->getCellAttributes($row,$i);
- if(intval($tmp['width']) != 0)
+ if(@intval($tmp['width']) != 0)
$attr[$i] = intval($tmp['width']);
- if(count($attr) == $this->_tabla->getColCount())
- break;
+ if(@count($attr) == $this->_tabla->getColCount())
+ break 2;
}
- if(count($attr) == $this->_tabla->getColCount())
- break;
}
+
+ if (!isset($attr))
+ die ('Todas las columnas tienen que tener un ancho asignado');
+
$tmp = array_sum($attr);
$attr2[0] = 0;
}
if (@$estilo['colspan']) {
- $jj += $estilo['colspan'];
+ $jj += $estilo['colspan'] -1;
}
}
}
}
if (@$estilo['colspan']) {
- $j += $estilo['colspan'];
+ $j += $estilo['colspan']-1;
}
}