From 49f22381bf6e1db8d5b514b82e58d50f748a72cd Mon Sep 17 00:00:00 2001 From: "honfika@gmail.com" Date: Wed, 9 Mar 2016 15:31:00 +0100 Subject: [PATCH] text edior fix (allow to remove properties) --- .../flash/tags/DefineEditTextTag.java | 21 +++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineEditTextTag.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineEditTextTag.java index 0044caa3c..78c99fa1f 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineEditTextTag.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/tags/DefineEditTextTag.java @@ -801,6 +801,7 @@ public class DefineEditTextTag extends TextTag { } else { this.hasText = false; } + this.wordWrap = wordWrap; this.multiline = multiline; this.password = password; @@ -810,36 +811,48 @@ public class DefineEditTextTag extends TextTag { this.wasStatic = wasStatic; this.html = html; this.useOutlines = useOutlines; + if (textColor != null) { hasTextColor = true; this.textColor = textColor; + } else { + hasTextColor = false; } + if (maxLength > -1) { this.maxLength = maxLength; hasMaxLength = true; + } else { + hasMaxLength = false; } + if (fontId > -1) { this.fontId = fontId; } + if (fontHeight > -1) { this.fontHeight = fontHeight; } + if (fontClass != null) { this.fontClass = fontClass; hasFontClass = true; + } else { + hasFontClass = false; } + this.autoSize = autoSize; this.align = align; - if ((leftMargin > -1) - || (rightMargin > -1) - || (indent > -1) - || (leading > -1)) { + if (leftMargin > -1 || rightMargin > -1 || indent > -1 || leading > -1) { this.leftMargin = leftMargin; this.rightMargin = rightMargin; this.indent = indent; this.leading = leading; hasLayout = true; + } else { + hasLayout = false; } + if (variableName == null) { variableName = ""; }