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--)