diff --git a/layout/tables/nsTableFrame.cpp b/layout/tables/nsTableFrame.cpp index d713cfc03c10..bf47ebf6ea1b 100644 --- a/layout/tables/nsTableFrame.cpp +++ b/layout/tables/nsTableFrame.cpp @@ -1073,8 +1073,10 @@ void nsTableFrame::RemoveCell(nsTableCellFrame* aCellFrame, cellMap->AddColsAtEnd(numColsNotRemoved); } } - else NS_ASSERTION(numColsInCache == numColsInMap, "cell map has too many cols"); - + else if (numColsInCache < numColsInMap) { + // this sets the child list, updates the col cache and cell map + CreateAnonymousColFrames(numColsInMap - numColsInCache, eColAnonymousCell, PR_TRUE); + } if (IsBorderCollapse()) { SetBCDamageArea(damageArea); }