Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Habersack <grendel@twistedcode.net>2009-04-30 04:31:32 +0400
committerMarek Habersack <grendel@twistedcode.net>2009-04-30 04:31:32 +0400
commit8edfbb32310f8098901a1f4bed71da82096eaf93 (patch)
treef3c1b82662fa46e74e2e0dbc8e5084a780108bfa
parent5959cc18ecd4429b8a1f5688356e2af3f517890c (diff)
2009-04-30 Marek Habersack <mhabersack@novell.com>
* browser.cs: NodePageVisit.Go () - it seems n.tree is almost never a RootTree, so the cast to that type caused monodoc to throw invalid cast exception and bail out. The fix is to use browser.help_tree instead of n.tree. svn path=/trunk/mono-tools/; revision=133103
-rwxr-xr-xdocbrowser/ChangeLog7
-rw-r--r--docbrowser/browser.cs2
2 files changed, 8 insertions, 1 deletions
diff --git a/docbrowser/ChangeLog b/docbrowser/ChangeLog
index 78fdb882..2067f120 100755
--- a/docbrowser/ChangeLog
+++ b/docbrowser/ChangeLog
@@ -1,3 +1,10 @@
+2009-04-30 Marek Habersack <mhabersack@novell.com>
+
+ * browser.cs: NodePageVisit.Go () - it seems n.tree is almost
+ never a RootTree, so the cast to that type caused monodoc to throw
+ invalid cast exception and bail out. The fix is to use
+ browser.help_tree instead of n.tree.
+
2009-04-25 Jonathan Pryor <jpryor@novell.com>
* browser.cs: Enable use of the webdoc cache, if present. This
diff --git a/docbrowser/browser.cs b/docbrowser/browser.cs
index 2d81b59c..40f2ff69 100644
--- a/docbrowser/browser.cs
+++ b/docbrowser/browser.cs
@@ -1885,7 +1885,7 @@ public class TreeBrowser {
public override void Go ()
{
- string res = Browser.GetHtml (url, n.tree.HelpSource, (RootTree) n.tree);
+ string res = Browser.GetHtml (url, n.tree.HelpSource, browser.help_tree);
browser.Render (res, n, url);
}
}