diff options
-rw-r--r-- | MyDocument.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/MyDocument.cs b/MyDocument.cs index b7e624d..a46126b 100644 --- a/MyDocument.cs +++ b/MyDocument.cs @@ -514,6 +514,9 @@ namespace macdoc int ScrollToVisible (Node n) { + if (!nodeToWrapper.ContainsKey (n)) + return 0; + var item = nodeToWrapper [n]; var row = outlineView.RowForItem (item); outlineView.ScrollRowToVisible (row); |