fix for bug #816612: a spaned first row leads to less columns on reading a tmpl

This commit is contained in:
Ralf Becker 2003-11-03 15:43:55 +00:00
parent bfb6f3b494
commit 0d40fed412

View File

@ -177,7 +177,15 @@
function set_rows_cols()
{
$this->rows = count($this->data) - 1;
$this->cols = count($this->data[1]); // 1 = first row, not 0
$this->cols = 0;
for($r = 1; $r <= $this->rows; ++$r)
{
$cols = count($this->data[$r]);
if ($this->cols < $cols)
{
$this->cols = $cols;
}
}
}
/*!