Skip to content

Commit

Permalink
prevent (possible endless) recursion in display of link references #84
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Aug 20, 2019
1 parent 99bd88d commit 85f4df5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions flat/script/flat.viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,6 @@ function renderstructure(structureelement, norecurse, noheader, extended) {
s = s + "</td></tr>";
});
}

s = s + "</table>";

if ((structureelement.incorrection) && (!norecurse)) {
Expand Down Expand Up @@ -677,7 +676,7 @@ function renderannotation(annotation, norecurse, extended) {
if (s2) s = s + "Link references: " + s2;
s = s + "</div>";
}
if (annotation.children) {
if ((annotation.children) && (!norecurse)) {
//Render higher order annotation
for (i = 0; i < annotation.children.length; i++) {
if (annotation.children[i].type) {
Expand Down

0 comments on commit 85f4df5

Please sign in to comment.