summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2016-11-06 19:47:31 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2016-11-06 19:47:31 (GMT)
commit5f01f783e2387a5d44ad70fbff5365aa0e5df938 (patch)
treea6065429fa9f4aff6ece5ca2246eb8f5c8ef0b0d
parentda21ad5b5147182c2117751d8c517b81dd57277f (diff)
downloadDoxygen-5f01f783e2387a5d44ad70fbff5365aa0e5df938.zip
Doxygen-5f01f783e2387a5d44ad70fbff5365aa0e5df938.tar.gz
Doxygen-5f01f783e2387a5d44ad70fbff5365aa0e5df938.tar.bz2
Fixed svgpan.js issue with Chrome causing empty SVG graphs
-rw-r--r--templates/html/svgpan.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/templates/html/svgpan.js b/templates/html/svgpan.js
index 4218e79..db9fcb9 100644
--- a/templates/html/svgpan.js
+++ b/templates/html/svgpan.js
@@ -89,9 +89,13 @@ function show()
function init(evt)
{
svgDoc = evt.target.ownerDocument;
- if (top.window && top.window.registerShow) // register show function in html doc for dynamic sections
- {
- top.window.registerShow(sectionId,show);
+ try {
+ if (top.window && top.window.registerShow) { // register show function in html doc for dynamic sections
+ top.window.registerShow(sectionId,show);
+ }
+ } catch(e) {
+ // ugh, we are not allowed to talk to the parent; can happen with Chrome when viewing pages
+ // locally, since they treat every local page as having a different origin
}
show();