diff options
author | Jeremie Laval <jeremie.laval@gmail.com> | 2012-05-03 17:37:25 +0400 |
---|---|---|
committer | Jeremie Laval <jeremie.laval@gmail.com> | 2012-05-03 17:37:25 +0400 |
commit | 5a87f3762955838667a82b088b4dc69255c4cd06 (patch) | |
tree | 7da3caa2d90375118e7562cd0aa18450eee2fc19 /windoc | |
parent | 323dcafaa2253fba3f36088ec3fdad1fa104451d (diff) |
[windoc] More root loading fixup
Diffstat (limited to 'windoc')
-rw-r--r-- | windoc/WinDoc/MainWindow.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/windoc/WinDoc/MainWindow.cs b/windoc/WinDoc/MainWindow.cs index 2ce9653b..636bf516 100644 --- a/windoc/WinDoc/MainWindow.cs +++ b/windoc/WinDoc/MainWindow.cs @@ -247,6 +247,8 @@ namespace WinDoc TreeNode treeNode; if (!nodeToTreeNodeMap.TryGetValue (node, out treeNode)) { + if (node.Parent == null) + return false; ShowNodeInTree (node.Parent); if (!nodeToTreeNodeMap.TryGetValue (node.Parent, out treeNode)) return false; |