diff --git a/CHANGELOG.md b/CHANGELOG.md index 601a7a91a..2154dd0e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,7 @@ All notable changes to this project will be documented in this file. - [#1908] Shape/image import must accept also filenames in the form "CHARID_xxx.ext" instead of just "CHARID.ext" - Exporting DefineJPEG3/4 with alpha channel to PNG produced JPEG instead - AS3 package level const with function value - separate P-code for trait and method +- Slot/const trait proper p-code indentation ### Changed - Warning before switching deobfuscation is now optional diff --git a/src/com/jpexs/decompiler/flash/gui/abc/SlotConstTraitDetailPanel.java b/src/com/jpexs/decompiler/flash/gui/abc/SlotConstTraitDetailPanel.java index 3ecc3dae0..51809e24e 100644 --- a/src/com/jpexs/decompiler/flash/gui/abc/SlotConstTraitDetailPanel.java +++ b/src/com/jpexs/decompiler/flash/gui/abc/SlotConstTraitDetailPanel.java @@ -101,6 +101,9 @@ public class SlotConstTraitDetailPanel extends JPanel implements TraitDetail { this.trait = trait; HighlightedTextWriter writer = new HighlightedTextWriter(Configuration.getCodeFormatting(), true); trait.convertTraitHeader(abc, writer); + if (Configuration.indentAs3PCode.get()) { + writer.unindent(); + } writer.appendNoHilight("end ; trait"); String s = writer.toString(); specialHilights = writer.specialHilights;