From 0d2ba3c36192ed39fa098a4803ad60fde87df6ad Mon Sep 17 00:00:00 2001 From: Honfika Date: Sun, 12 Jan 2014 23:58:32 +0100 Subject: [PATCH] Issue #480 Define*texts export doesn't works in latest nightly: fixed --- trunk/src/com/jpexs/decompiler/flash/gui/MainPanel.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/trunk/src/com/jpexs/decompiler/flash/gui/MainPanel.java b/trunk/src/com/jpexs/decompiler/flash/gui/MainPanel.java index 354a19333..9a94ea3a1 100644 --- a/trunk/src/com/jpexs/decompiler/flash/gui/MainPanel.java +++ b/trunk/src/com/jpexs/decompiler/flash/gui/MainPanel.java @@ -93,6 +93,7 @@ import com.jpexs.decompiler.flash.tags.gfx.DefineCompactedFont; import com.jpexs.decompiler.flash.tags.text.ParseException; import com.jpexs.decompiler.flash.treeitems.FrameNodeItem; import com.jpexs.decompiler.flash.treeitems.TreeItem; +import com.jpexs.decompiler.flash.treenodes.ContainerNode; import com.jpexs.decompiler.flash.treenodes.TagNode; import com.jpexs.decompiler.flash.treenodes.TreeNode; import com.jpexs.decompiler.flash.types.GLYPHENTRY; @@ -1297,8 +1298,8 @@ public final class MainPanel extends JPanel implements ActionListener, TreeSelec if (d.getItem().getSwf() != swf) { continue; } - if (d instanceof TagNode) { - TagNode n = (TagNode) d; + if (d instanceof ContainerNode) { + ContainerNode n = (ContainerNode) d; if (TagTree.getTreeNodeType(n.getItem()) == TreeNodeType.IMAGE) { images.add((Tag) n.getItem()); }