commit | e8a455aa37ffd7c7eb1ce3e8bb8589584939375d | [log] [tgz] |
---|---|---|
author | Steven Burrows <sburrows@villa-technologies.com> | Thu Mar 16 16:58:59 2017 +0000 |
committer | Simon Hunt <simon@onlab.us> | Fri Mar 17 14:21:57 2017 +0000 |
tree | 1a6d5af4a3c90983cfc146211aaf6b266adb29e9 | |
parent | a5b5f4ee0054c60a50231ccbd3fc798490333219 [diff] [blame] |
Topo2: Handle regions without a map/sprite Change-Id: Ifa944499992843c1506462caae0e1646b204996b
diff --git a/web/gui/src/main/webapp/app/view/topo2/topo2Link.js b/web/gui/src/main/webapp/app/view/topo2/topo2Link.js index e94ed6c..fbdeab3 100644 --- a/web/gui/src/main/webapp/app/view/topo2/topo2Link.js +++ b/web/gui/src/main/webapp/app/view/topo2/topo2Link.js
@@ -299,6 +299,9 @@ } }, setScale: function () { + + if (!this.el) return; + var width = linkScale(widthRatio) / t2zs.scale(); this.el.style('stroke-width', width + 'px');