From ac1f6fea060c19c66b3bd20516256bcc615ea4a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=F8=EDk?= Date: Fri, 19 Apr 2013 20:20:37 +0200 Subject: [PATCH] AS1/2: Merging pushes fix --- trunk/src/com/jpexs/decompiler/flash/action/Action.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/trunk/src/com/jpexs/decompiler/flash/action/Action.java b/trunk/src/com/jpexs/decompiler/flash/action/Action.java index 83af7548e..62233d9a2 100644 --- a/trunk/src/com/jpexs/decompiler/flash/action/Action.java +++ b/trunk/src/com/jpexs/decompiler/flash/action/Action.java @@ -449,8 +449,16 @@ public class Action implements GraphSourceItem { if (a.replaceWith != null) { + if (lastPush) { + ret += "\r\n"; + lastPush = false; + } ret += Highlighting.hilighOffset("", offset) + a.replaceWith.getASMSource(list, importantOffsets, constantPool, version, hex) + "\r\n"; } else if (a.ignored) { + if (lastPush) { + ret += "\r\n"; + lastPush = false; + } int len = 0; if (pos + 1 < list.size()) { len = (int) (((Action) (list.get(pos + 1))).getAddress() - a.getAddress());