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