Skip to content

Commit

Permalink
Try to catch the mysterious crash
Browse files Browse the repository at this point in the history
Cf. #17
  • Loading branch information
thvitt committed Oct 21, 2016
1 parent 85a3896 commit 0e24f74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions svg_rendering/page/js-gen/transcript-svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -422,13 +422,13 @@ if(window.FaustTranscript === undefined) {
return view;
};

FaustTranscript.LineDecoration.prototype.layout = function() {
FaustTranscript.LineDecoration.prototype.layout = function() { try {
var textBBox = this.text.textElement.getBBox();
this.view.setAttribute("x1", textBBox.x);
this.view.setAttribute("x2", textBBox.x + textBBox.width);
var y = textBBox.height * this.yOffset;
this.view.setAttribute("y1", y);
this.view.setAttribute('y2', y);
this.view.setAttribute('y2', y); } catch (e) { console.error("Error in LineDecoration.Layout: ", e, this.text); }
};

FaustTranscript.CloneDecoration.prototype.createView = function() {
Expand Down

0 comments on commit 0e24f74

Please sign in to comment.