bug 55789 - the col group frame increments its num cols before inserting the col into the table. a=buster, r=dcone.

git-svn-id: svn://10.0.0.236/trunk@80953 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
karnaze%netscape.com
2000-10-11 22:09:00 +00:00
parent a5e1579a0e
commit e6d784c22a
2 changed files with 2 additions and 2 deletions

View File

@@ -119,8 +119,8 @@ nsTableColGroupFrame::AddColsToTable(nsIPresContext& aPresContext,
if (nsLayoutAtoms::tableColFrame == kidType) {
((nsTableColFrame*)kidFrame)->SetColIndex(colIndex);
if (!foundLastFrame) {
tableFrame->InsertCol(aPresContext, (nsTableColFrame &)*kidFrame, colIndex);
mColCount++;
tableFrame->InsertCol(aPresContext, (nsTableColFrame &)*kidFrame, colIndex);
}
colIndex++;
}