diff --git a/src/com/jpexs/decompiler/flash/gui/MainPanel.java b/src/com/jpexs/decompiler/flash/gui/MainPanel.java index b6a34dba7..3bb36ee60 100644 --- a/src/com/jpexs/decompiler/flash/gui/MainPanel.java +++ b/src/com/jpexs/decompiler/flash/gui/MainPanel.java @@ -5140,6 +5140,7 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se abcPanel.setAbc(scriptLeaf.abc); abcPanel.decompiledTextArea.setScript(scriptLeaf, true); abcPanel.decompiledTextArea.setNoTrait(); + abcPanel.setCompound(true); } if (Configuration.displayAs3TraitsListAndConstantsPanel.get()) { @@ -5156,6 +5157,7 @@ public final class MainPanel extends JPanel implements TreeSelectionListener, Se abcPanel.setAbc(scriptLeaf.abc); abcPanel.decompiledTextArea.setScript(scriptLeaf, true); abcPanel.decompiledTextArea.setNoTrait(); + abcPanel.setCompound(!scriptLeaf.isSimple); } if (Configuration.displayAs3TraitsListAndConstantsPanel.get()) { diff --git a/src/com/jpexs/decompiler/flash/gui/abc/ABCPanel.java b/src/com/jpexs/decompiler/flash/gui/abc/ABCPanel.java index 3b5cf00e9..333ca71d1 100644 --- a/src/com/jpexs/decompiler/flash/gui/abc/ABCPanel.java +++ b/src/com/jpexs/decompiler/flash/gui/abc/ABCPanel.java @@ -203,6 +203,8 @@ public class ABCPanel extends JPanel implements ItemListener, SearchListener