From 4b49aa1ea0656fef6a3db21fd29a7ebb5257b868 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoshiki=20V=C3=A1zquez=20Baeza?= Date: Sat, 20 Jun 2020 09:48:48 -0700 Subject: [PATCH] BUG: Problem updating color in circular layout Setting the color and switching between layouts would work just fine. However, setting the color once in the circular layout would make the browser tab crash. Seems to be related to to the line width not being parsed correctly. --- empress/support_files/js/side-panel-handler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/empress/support_files/js/side-panel-handler.js b/empress/support_files/js/side-panel-handler.js index 1002c5dfb..0a7045c14 100644 --- a/empress/support_files/js/side-panel-handler.js +++ b/empress/support_files/js/side-panel-handler.js @@ -186,7 +186,7 @@ define(["underscore", "Colorer"], function (_, Colorer) { // color tree this[colorMethodName](); - var lWidth = lwInput.value; + var lWidth = parseInt(lwInput.value); if (lWidth !== 1) { this.empress.thickenSameSampleLines(lWidth - 1); }