Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/macdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'MonodocDataSources.cs')
-rw-r--r--MonodocDataSources.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/MonodocDataSources.cs b/MonodocDataSources.cs
index 61000a1..d3507ee 100644
--- a/MonodocDataSources.cs
+++ b/MonodocDataSources.cs
@@ -64,7 +64,7 @@ namespace macdoc
public override NSObject GetChild (NSOutlineView outlineView, int index, NSObject item)
{
WrapNode wrap;
- Node n = (Node) (item == null ? Root : (Node) GetNode (item)).Nodes [index];
+ Node n = (Node) (item == null ? Root.RootNode : (Node) GetNode (item)).Nodes [index];
if (nodeToWrapper.ContainsKey (n))
return nodeToWrapper [n];
@@ -83,7 +83,7 @@ namespace macdoc
public override int GetChildrenCount (NSOutlineView outlineView, NSObject item)
{
if (item == null)
- return Root.Nodes.Count;
+ return Root.RootNode.Nodes.Count;
return GetNode (item).Nodes.Count;
}