fixed a space leak for tables with rowspans

git-svn-id: svn://10.0.0.236/trunk@9165 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
buster%netscape.com
1998-09-02 22:55:37 +00:00
parent 179b369fde
commit f5e2a5ce2f
2 changed files with 2 additions and 2 deletions

View File

@@ -143,7 +143,7 @@ void nsCellMap::GrowToCol(PRInt32 aColCount)
void nsCellMap::SetCellAt(CellData *aCell, int aRowIndex, int aColIndex)
{
NS_PRECONDITION(nsnull!=aCell, "bad aCell");
PRInt32 newRows = (aRowIndex+1)-mRowCount; // add 1 to the "index" to get a "count"
PRInt32 newRows = (aRowIndex+1)-mTotalRowCount; // add 1 to the "index" to get a "count"
if (0<newRows)
{
for ( ; newRows>0; newRows--)

View File

@@ -143,7 +143,7 @@ void nsCellMap::GrowToCol(PRInt32 aColCount)
void nsCellMap::SetCellAt(CellData *aCell, int aRowIndex, int aColIndex)
{
NS_PRECONDITION(nsnull!=aCell, "bad aCell");
PRInt32 newRows = (aRowIndex+1)-mRowCount; // add 1 to the "index" to get a "count"
PRInt32 newRows = (aRowIndex+1)-mTotalRowCount; // add 1 to the "index" to get a "count"
if (0<newRows)
{
for ( ; newRows>0; newRows--)