From c5baaa9bfe3d96f081c2a92e7044cf11e4277a3f Mon Sep 17 00:00:00 2001 From: "waterson%netscape.com" Date: Thu, 10 Dec 1998 08:30:59 +0000 Subject: [PATCH] Make sure to get the children of the node, not the original node. --- widget/src/xpwidgets/nsHTDataModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widget/src/xpwidgets/nsHTDataModel.cpp b/widget/src/xpwidgets/nsHTDataModel.cpp index 53effb5b4ec..31cff9cae6d 100644 --- a/widget/src/xpwidgets/nsHTDataModel.cpp +++ b/widget/src/xpwidgets/nsHTDataModel.cpp @@ -113,7 +113,7 @@ void nsHTDataModel::AddNodesToArray(nsIContent* pContent, PRUint32 indentLevel) for (PRInt32 i = 0; i < numChildren; i++) { nsIContent* child = nsnull; - pContent->ChildAt(i, child); + pChildrenNode->ChildAt(i, child); if (child) { AddNodesToArray(child, indentLevel);