Skip to content

Commit

Permalink
Use proper ID computation for relations in metarelation drawing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Petter Ericson committed Mar 30, 2021
1 parent da07245 commit 61cf805
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/draw.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function draw_metarelation_arg(draw_context, mei_graph, g_elem) {
var id = id_prefix + g_elem.getAttribute("xml:id");
var type = relation_type(g_elem);
var targets = relation_allnodes_arg(mei_graph, g_elem).map(
(e) => document.getElementById(id_in_svg(draw_context,get_id(e))));
(e) => document.getElementById(draw_context.id_prefix+get_id(e)));
if(targets.indexOf(null) != -1){
console.log("Missing relation, not drawing metarelation");
return [];
Expand Down

0 comments on commit 61cf805

Please sign in to comment.