From 0e24f744a63604430f17b9ec5a2b3d05778cab7c Mon Sep 17 00:00:00 2001 From: Thorsten Vitt Date: Fri, 21 Oct 2016 13:03:06 +0200 Subject: [PATCH] Try to catch the mysterious crash Cf. #17 --- svg_rendering/page/js-gen/transcript-svg.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/svg_rendering/page/js-gen/transcript-svg.js b/svg_rendering/page/js-gen/transcript-svg.js index 4b02cae..5839585 100644 --- a/svg_rendering/page/js-gen/transcript-svg.js +++ b/svg_rendering/page/js-gen/transcript-svg.js @@ -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() {