From 25b6950b08447277d80c3de322e73e818350f43e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sun, 31 Aug 2025 00:25:27 +0200 Subject: [PATCH] ControlTextFormatRecord - fix align constants - ALIGN_RIGHT vs ALIGN_CENTER --- .../flash/types/text/format/ControlTextFormatRecord.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/text/format/ControlTextFormatRecord.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/text/format/ControlTextFormatRecord.java index 2147c034d..95fa043b8 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/text/format/ControlTextFormatRecord.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/types/text/format/ControlTextFormatRecord.java @@ -50,8 +50,8 @@ public class ControlTextFormatRecord implements TextFormatRecord { public static final int SCRIPT_SUBSCRIPT = 2; public static final int ALIGN_LEFT = 0; - public static final int ALIGN_CENTER = 1; - public static final int ALIGN_RIGHT = 2; + public static final int ALIGN_RIGHT = 1; + public static final int ALIGN_CENTER = 2; public static final int ALIGN_JUSTIFY = 3; @EnumValue(value = TYPE_STYLE, text = "style") @@ -97,11 +97,11 @@ public class ControlTextFormatRecord implements TextFormatRecord { @SWFType(BasicType.SI16) public int kerning; - @Conditional(value = "type", options = {TYPE_ALIGN}) + @Conditional(value = "type", options = {TYPE_ALIGN}) @SWFType(BasicType.UI8) @EnumValue(value = ALIGN_LEFT, text = "left") - @EnumValue(value = ALIGN_CENTER, text = "center") @EnumValue(value = ALIGN_RIGHT, text = "right") + @EnumValue(value = ALIGN_CENTER, text = "center") @EnumValue(value = ALIGN_JUSTIFY, text = "justify") public int align;