From e6d784c22ad5f9b25ea52aa6f3d5d8cd66593315 Mon Sep 17 00:00:00 2001 From: "karnaze%netscape.com" Date: Wed, 11 Oct 2000 22:09:00 +0000 Subject: [PATCH] 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 --- mozilla/layout/html/table/src/nsTableColGroupFrame.cpp | 2 +- mozilla/layout/tables/nsTableColGroupFrame.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/layout/html/table/src/nsTableColGroupFrame.cpp b/mozilla/layout/html/table/src/nsTableColGroupFrame.cpp index d4525370a8a..c06c317230b 100644 --- a/mozilla/layout/html/table/src/nsTableColGroupFrame.cpp +++ b/mozilla/layout/html/table/src/nsTableColGroupFrame.cpp @@ -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++; } diff --git a/mozilla/layout/tables/nsTableColGroupFrame.cpp b/mozilla/layout/tables/nsTableColGroupFrame.cpp index d4525370a8a..c06c317230b 100644 --- a/mozilla/layout/tables/nsTableColGroupFrame.cpp +++ b/mozilla/layout/tables/nsTableColGroupFrame.cpp @@ -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++; }