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

This commit is contained in:
karnaze%netscape.com 2000-10-11 22:09:00 +00:00
parent ca062d6d3e
commit 45c48d4cce
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++;
}

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++;
}