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:
authorMiguel de Icaza <miguel@gnome.org>2013-08-21 19:20:04 +0400
committerMiguel de Icaza <miguel@gnome.org>2013-08-21 19:20:04 +0400
commit0c582899f4dbe7d535e904ba4060d0cbe193cc3a (patch)
tree551f234dea7005bd5ff626c4c9316ce2eb54b39f
parentf74e1cbc5c49a714f70e8591670a0d80ba67f98f (diff)
parent3a1edfe2cea639c165808a35c3a3d17e88a8bf0c (diff)
Merge pull request #114 from spicypixel/hotfix/macdoc-scrolltovisible-crash
Fix crash in macdoc
-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);