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 332aa00d9..7a8fa3691 100644 --- a/trunk/src/com/jpexs/decompiler/flash/action/swf4/ActionPush.java +++ b/trunk/src/com/jpexs/decompiler/flash/action/swf4/ActionPush.java @@ -27,6 +27,7 @@ import com.jpexs.decompiler.flash.action.treemodel.DirectValueTreeItem; import com.jpexs.decompiler.flash.graph.GraphSourceItem; import com.jpexs.decompiler.flash.graph.GraphTargetItem; import com.jpexs.decompiler.flash.helpers.Helper; +import com.jpexs.decompiler.flash.helpers.Highlighting; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; @@ -261,8 +262,8 @@ public class ActionPush extends Action { if (pos > 0) { ret += " "; } + ret += Highlighting.hilighOffset(toString(i), getAddress()+pos+1); pos++; - ret += toString(i); } return ret; } diff --git a/trunk/src/com/jpexs/decompiler/flash/graph/GraphTargetItem.java b/trunk/src/com/jpexs/decompiler/flash/graph/GraphTargetItem.java index 00eb20b9c..f54dfcac3 100644 --- a/trunk/src/com/jpexs/decompiler/flash/graph/GraphTargetItem.java +++ b/trunk/src/com/jpexs/decompiler/flash/graph/GraphTargetItem.java @@ -28,7 +28,7 @@ public abstract class GraphTargetItem { public static final int PRECEDENCE_COMMA = 15; public static final int NOPRECEDENCE = 16; public GraphSourceItem src; - public int pos = 0; + public int pos = -1; public int precedence; public List moreSrc = new ArrayList<>(); public GraphPart firstPart; @@ -61,7 +61,7 @@ public abstract class GraphTargetItem { if (src == null) { return str; } - return Highlighting.hilighOffset(str, src.getOffset()); + return Highlighting.hilighOffset(str, src.getOffset()+pos+1); } public String toStringSemicoloned(List localData) {