Don't create dead cells if the position is outside the cellmap boundaries. bug 328339 r/sr=bz

This commit is contained in:
bmlk%gmx.de 2006-03-04 05:32:38 +00:00
Родитель 20b85ffac2
Коммит 1c6c74da4a
1 изменённых файлов: 7 добавлений и 6 удалений

Просмотреть файл

@ -2351,12 +2351,13 @@ nsCellMap::GetDataAt(nsTableCellMap& aMap,
break;
}
}
}
if (!didZeroExpand) {
// mark this point dead
CellData* cellData = AllocCellData(nsnull);
if (cellData)
SetDataAt(aMap, *cellData, aMapRowIndex, aColIndex, PR_FALSE);
if (!didZeroExpand) {
// mark this point dead as we checked rowspans above
CellData* cellData = AllocCellData(nsnull);
if (cellData)
SetDataAt(aMap, *cellData, aMapRowIndex, aColIndex, PR_FALSE);
}
}
// if zero span adjustments were made the data may be available now
if (!data && didZeroExpand) {