diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWF.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWF.java index 2aecae50f..80ce9cd03 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWF.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWF.java @@ -318,6 +318,10 @@ public final class SWF implements SWFContainerItem, Timelined { if (checkAll || tag.isModified()) { Set needed = new HashSet<>(); tag.getNeededCharacters(needed); + if (tag instanceof CharacterTag) { + CharacterTag characterTag = (CharacterTag) tag; + needed.remove(characterTag.getCharacterId()); + } boolean moved = false; for (Integer id : needed) { if (!addedCharacterIds.contains(id)) { diff --git a/libsrc/ffdec_lib/src/com/jpexs/helpers/SerializableImage.java b/libsrc/ffdec_lib/src/com/jpexs/helpers/SerializableImage.java index e7e524b78..cb4f672da 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/helpers/SerializableImage.java +++ b/libsrc/ffdec_lib/src/com/jpexs/helpers/SerializableImage.java @@ -43,7 +43,6 @@ public class SerializableImage implements Serializable { public static int TYPE_INT_ARGB_PRE = BufferedImage.TYPE_INT_ARGB_PRE; public static int TYPE_4BYTE_ABGR = BufferedImage.TYPE_4BYTE_ABGR; - //private static int imageid = 0; private BufferedImage image; private transient Graphics graphics; @@ -67,10 +66,6 @@ public class SerializableImage implements Serializable { } public BufferedImage getBufferedImage() { - /*try { - javax.imageio.ImageIO.write(image, "png", new File("c:\\10\\x\\imageid" + String.format("%03d", imageid++) + ".png")); - } catch (IOException ex) { - }*/ return image; }