diff options
author | Miguel de Icaza <miguel@gnome.org> | 2013-08-21 19:20:04 +0400 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2013-08-21 19:20:04 +0400 |
commit | 0c582899f4dbe7d535e904ba4060d0cbe193cc3a (patch) | |
tree | 551f234dea7005bd5ff626c4c9316ce2eb54b39f | |
parent | f74e1cbc5c49a714f70e8591670a0d80ba67f98f (diff) | |
parent | 3a1edfe2cea639c165808a35c3a3d17e88a8bf0c (diff) |
Merge pull request #114 from spicypixel/hotfix/macdoc-scrolltovisible-crash
Fix crash in macdoc
-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); |