Fixing characters order failed, recursion detected: problem fixed

This commit is contained in:
2014-12-07 16:21:14 +01:00
parent cdae56d128
commit bc3967597c
2 changed files with 4 additions and 5 deletions
@@ -318,6 +318,10 @@ public final class SWF implements SWFContainerItem, Timelined {
if (checkAll || tag.isModified()) {
Set<Integer> 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)) {
@@ -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;
}