From e123bc699fc85f4385d23e7ca04375e060776c9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sun, 29 Jan 2023 16:28:23 +0100 Subject: [PATCH] Fixed AS3 - incorrect switching P-code causing empty text --- CHANGELOG.md | 1 + src/com/jpexs/decompiler/flash/gui/abc/ASMSourceEditorPane.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ea1649224..8b8fa2ced 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ All notable changes to this project will be documented in this file. - [#1954] Incorrect calculation of empty button bounds causing OutOfMemory - [#1944] Scroll position not retained on Ctrl+click in the tag tree - [#1940] AS3 decompilation - wrong assignment +- AS3 - incorrect switching P-code causing empty text ## [18.3.3] - 2023-01-22 ### Added diff --git a/src/com/jpexs/decompiler/flash/gui/abc/ASMSourceEditorPane.java b/src/com/jpexs/decompiler/flash/gui/abc/ASMSourceEditorPane.java index 441b8f2e2..2eae06b0f 100644 --- a/src/com/jpexs/decompiler/flash/gui/abc/ASMSourceEditorPane.java +++ b/src/com/jpexs/decompiler/flash/gui/abc/ASMSourceEditorPane.java @@ -389,6 +389,8 @@ public class ASMSourceEditorPane extends DebuggableEditorPane implements CaretLi public void clear() { setText(""); bodyIndex = -1; + methodIndex = -1; + scriptIndex = -1; setCaretPosition(0); }