diff --git a/trunk/src/com/jpexs/decompiler/flash/action/Action.java b/trunk/src/com/jpexs/decompiler/flash/action/Action.java index 4dae046a0..c26ef633d 100644 --- a/trunk/src/com/jpexs/decompiler/flash/action/Action.java +++ b/trunk/src/com/jpexs/decompiler/flash/action/Action.java @@ -423,7 +423,7 @@ public class Action implements GraphSourceItem { } offset = a.getAddress(); - if ((!(a.ignored)) && (a instanceof GraphSourceItemContainer)) { + if ((!(a.isIgnored())) && (a instanceof GraphSourceItemContainer)) { GraphSourceItemContainer cnt = (GraphSourceItemContainer) a; containersPos.put(cnt, 0); List sizes = cnt.getContainerSizes(); @@ -471,7 +471,7 @@ public class Action implements GraphSourceItem { ret.append(Highlighting.hilighOffset("", offset)); ret.append(a.replaceWith.getASMSource(list, importantOffsets, constantPool, version, hex)); ret.append("\r\n"); - } else if (a.ignored) { + } else if (a.isIgnored()) { if (lastPush) { ret.append("\r\n"); lastPush = false; @@ -527,7 +527,7 @@ public class Action implements GraphSourceItem { } else { ret.append(a.getASMSourceReplaced(list, importantOffsets, constantPool, version, hex)); } - ret.append(a.ignored ? "; ignored" : ""); + ret.append(a.isIgnored() ? "; ignored" : ""); ret.append(add); ret.append((a instanceof ActionPush) ? "" : "\r\n"); } diff --git a/trunk/src/com/jpexs/decompiler/flash/action/swf4/ActionPush.java b/trunk/src/com/jpexs/decompiler/flash/action/swf4/ActionPush.java index 95e9f74ff..ab6be7fd4 100644 --- a/trunk/src/com/jpexs/decompiler/flash/action/swf4/ActionPush.java +++ b/trunk/src/com/jpexs/decompiler/flash/action/swf4/ActionPush.java @@ -45,6 +45,11 @@ public class ActionPush extends Action { public List constantPool; public List ignoredParts = new ArrayList<>(); + @Override + public boolean isIgnored() { + return ignoredParts.size() == values.size(); + } + @Override public void setIgnored(boolean ignored, int pos) { if (ignored) {