This commit is contained in:
Laura Klünder 2018-11-17 01:50:18 +01:00
parent 2e7b5ceff0
commit 700389f3f3

View file

@ -682,7 +682,7 @@ editor = {
if (layer.feature.properties.type === 'graphedge') {
var start_pos = 0.1,
end_pos = layer.length-0.1,
color_index = editor._arrow_colors.indexOf(layer._path.getAttribute('stroke'));
color_index = editor._arrow_colors.indexOf(layer._path.getAttribute('stroke')),
other = (editor._graph_edges_to[layer.feature.properties.from_node] !== undefined) ? editor._graph_edges_to[layer.feature.properties.from_node][layer.feature.properties.to_node] : undefined;
if (color_index === -1) {
color_index = editor._arrow_colors.length;