workaround for bug 2476: check for null child list before calling nsFrameList::AppendFrames

This commit is contained in:
buster%netscape.com 1999-01-18 23:54:23 +00:00
parent 723c42a967
commit 45846b7bca
2 changed files with 4 additions and 2 deletions

View File

@ -118,7 +118,8 @@ nsTableColGroupFrame::InitNewFrames(nsIPresContext& aPresContext, nsIFrame* aChi
NS_IMETHODIMP
nsTableColGroupFrame::AppendNewFrames(nsIPresContext& aPresContext, nsIFrame* aChildList)
{
mFrames.AppendFrames(nsnull, aChildList);
if (nsnull!=aChildList)
mFrames.AppendFrames(nsnull, aChildList);
return NS_OK;
}

View File

@ -118,7 +118,8 @@ nsTableColGroupFrame::InitNewFrames(nsIPresContext& aPresContext, nsIFrame* aChi
NS_IMETHODIMP
nsTableColGroupFrame::AppendNewFrames(nsIPresContext& aPresContext, nsIFrame* aChildList)
{
mFrames.AppendFrames(nsnull, aChildList);
if (nsnull!=aChildList)
mFrames.AppendFrames(nsnull, aChildList);
return NS_OK;
}