зеркало из https://github.com/mozilla/pjs.git
Iterate through children of the <COLUMNS> node, not the original node.
This commit is contained in:
Родитель
c5baaa9bfe
Коммит
470dea45a9
|
@ -48,6 +48,8 @@ nsHTTreeDataModel::nsHTTreeDataModel() : nsTreeDataModel(), nsHTDataModel()
|
|||
|
||||
// Hard-coded values.
|
||||
mVisibleColumnCount = 3;
|
||||
|
||||
mSingleControlStripItem = new nsHTControlStripItem();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
|
@ -98,7 +100,7 @@ void nsHTTreeDataModel::SetContentRoot(nsIContent* pContent)
|
|||
for (PRInt32 i = 0; i < numChildren; i++)
|
||||
{
|
||||
nsIContent* child = nsnull;
|
||||
pContent->ChildAt(i, child);
|
||||
pColumnNode->ChildAt(i, child);
|
||||
if (child)
|
||||
{
|
||||
// We have a column to add to our array.
|
||||
|
@ -329,4 +331,4 @@ nsHierarchicalDataItem* nsHTTreeDataModel::CreateDataItemWithContentNode(nsICont
|
|||
{
|
||||
nsHTTreeItem* pItem = new nsHTTreeItem(pContent, this);
|
||||
return pItem;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче