From f5e2a5ce2ff19880cc0bbfe56a7e6d7a31b80e29 Mon Sep 17 00:00:00 2001 From: "buster%netscape.com" Date: Wed, 2 Sep 1998 22:55:37 +0000 Subject: [PATCH] fixed a space leak for tables with rowspans git-svn-id: svn://10.0.0.236/trunk@9165 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/html/table/src/nsCellMap.cpp | 2 +- mozilla/layout/tables/nsCellMap.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/layout/html/table/src/nsCellMap.cpp b/mozilla/layout/html/table/src/nsCellMap.cpp index 94721f0d438..99a7b3ca372 100644 --- a/mozilla/layout/html/table/src/nsCellMap.cpp +++ b/mozilla/layout/html/table/src/nsCellMap.cpp @@ -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 (00; newRows--) diff --git a/mozilla/layout/tables/nsCellMap.cpp b/mozilla/layout/tables/nsCellMap.cpp index 94721f0d438..99a7b3ca372 100644 --- a/mozilla/layout/tables/nsCellMap.cpp +++ b/mozilla/layout/tables/nsCellMap.cpp @@ -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 (00; newRows--)