fixed bug 1188. Colspans beyond the end of the table were adding entries

into the column cache, which is very, very bad.
This commit is contained in:
buster@netscape.com
1998-10-26 19:15:31 +00:00
parent 1ea121162a
commit 650e16c819
2 changed files with 2 additions and 2 deletions

View File

@@ -3035,7 +3035,7 @@ void nsTableFrame::BuildColumnCache( nsIPresContext& aPresContext,
delete mColCache;
}
mColCache = new ColumnInfoCache(mColCount);
mColCache = new ColumnInfoCache(GetColCount());
nsIFrame * childFrame = mFirstChild;
while (nsnull!=childFrame)
{ // in this loop, we cache column info and set column style info from cells in first row

View File

@@ -3035,7 +3035,7 @@ void nsTableFrame::BuildColumnCache( nsIPresContext& aPresContext,
delete mColCache;
}
mColCache = new ColumnInfoCache(mColCount);
mColCache = new ColumnInfoCache(GetColCount());
nsIFrame * childFrame = mFirstChild;
while (nsnull!=childFrame)
{ // in this loop, we cache column info and set column style info from cells in first row