From 12378f508bd629e8e227bcd7f28e65d1dea3f25a Mon Sep 17 00:00:00 2001 From: "honfika@gmail.com" Date: Wed, 1 Jul 2015 13:41:47 +0200 Subject: [PATCH] external view of DefineBits tag fixed (include JPEGTables tag) --- src/com/jpexs/decompiler/flash/gui/PreviewPanel.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/com/jpexs/decompiler/flash/gui/PreviewPanel.java b/src/com/jpexs/decompiler/flash/gui/PreviewPanel.java index 600ec048d..08cf16976 100644 --- a/src/com/jpexs/decompiler/flash/gui/PreviewPanel.java +++ b/src/com/jpexs/decompiler/flash/gui/PreviewPanel.java @@ -753,7 +753,16 @@ public class PreviewPanel extends JPersistentSplitPane implements TagEditorPanel if (isSprite && chtId == n) { continue; } - classicTag(swf.getCharacter(n)).writeTag(sos2); + + CharacterTag characterTag = swf.getCharacter(n); + if (characterTag instanceof DefineBitsTag) { + JPEGTablesTag jtt = swf.getJtt(); + if (jtt != null) { + jtt.writeTag(sos2); + } + } + + classicTag(characterTag).writeTag(sos2); } }