Skip to content

Commit

Permalink
BUGFIX: Correctly load multiple layers into the editor
Browse files Browse the repository at this point in the history
  • Loading branch information
skurfuerst committed Dec 16, 2016
1 parent a085a21 commit e0ee499
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Resources/Private/Templates/DiagramEditor/Index.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,9 @@
var editorUi = new EditorUi(editor);

var doc = mxUtils.parseXml(window.DIAGRAM_CONTENTS);
var model = new mxGraphModel();
var codec = new mxCodec(doc);
codec.decode(doc.documentElement, model);
codec.decode(doc.documentElement, editor.graph.getModel());

var children = model.getChildren(model.getChildAt(model.getRoot(), 0));
editor.graph.importCells(children);
editor.filename = window.DIAGRAM_NODE;

editorUi.save = function(nodePath) {
Expand Down

0 comments on commit e0ee499

Please sign in to comment.