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:
-rw-r--r--MyDocument.cs3
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);