diff options
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; |