From 7baee5eeb07567cdf19713039ed6414036afbd41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Wed, 5 Nov 2014 22:27:02 +0100 Subject: [PATCH] fixed removing newly created tags (setTimelined) --- src/com/jpexs/decompiler/flash/gui/tagtree/TagTree.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/jpexs/decompiler/flash/gui/tagtree/TagTree.java b/src/com/jpexs/decompiler/flash/gui/tagtree/TagTree.java index b57c7fe4d..2f701bced 100644 --- a/src/com/jpexs/decompiler/flash/gui/tagtree/TagTree.java +++ b/src/com/jpexs/decompiler/flash/gui/tagtree/TagTree.java @@ -488,7 +488,9 @@ public class TagTree extends JTree implements ActionListener { public void actionPerformed(ActionEvent ae) { try { SWF swf = folderItem.getSwf(); - swf.tags.add((Tag) cl.getDeclaredConstructor(SWF.class).newInstance(new Object[]{swf})); + Tag t = (Tag) cl.getDeclaredConstructor(SWF.class).newInstance(new Object[]{swf}); + t.setTimelined(swf); + swf.tags.add(t); swf.updateCharacters(); mainPanel.refreshTree(); } catch (InstantiationException | IllegalAccessException | NoSuchMethodException | SecurityException | IllegalArgumentException | InvocationTargetException ex) {