2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

svg.js: aoid crash while pressing menu for horizontalLine

git-svn-id: https://svn.fhem.de/fhem/trunk@16617 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2018-04-15 09:30:12 +00:00
parent e8401d3889
commit b24126d890

View File

@ -84,6 +84,12 @@ sv_menu(evt, embed)
var lid = $(label).attr("line_id");
var sel = $(svg).find("#"+lid);
var selNode = $(sel).get(0);
// horizintalLine* consists of a list of lines, too much work do handle
// it.
if(!selNode)
return;
var tl = $(svg).find("#svg_title");
var par = svgNode.par;