You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by jo...@apache.org on 2024/10/09 20:45:10 UTC
(royale-asjs) 06/07: MXRoyale: fix UITextFormat super() constructor call
This is an automated email from the ASF dual-hosted git repository.
joshtynjala pushed a commit to branch fix/super-signature-checks
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 920a3221026938b9eef36561576cc8174d05143d
Author: Josh Tynjala <jo...@apache.org>
AuthorDate: Wed Oct 9 13:23:57 2024 -0700
MXRoyale: fix UITextFormat super() constructor call
SWF has extra arguments that UITextFormat and mx.text.TextFormat don't have. Pass null for those arguments.
---
.../MXRoyale/src/main/royale/mx/core/UITextFormat.as | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UITextFormat.as b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UITextFormat.as
index d8f622666b..0750b5b22f 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/core/UITextFormat.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/core/UITextFormat.as
@@ -198,8 +198,16 @@ public class UITextFormat extends TextFormat
{
this.systemManager = systemManager;
- super(font, size, color, bold, italic, underline,
- align, leftMargin, rightMargin);
+ COMPILE::SWF
+ {
+ super(font, size, color, bold, italic, underline,
+ null, null, align, leftMargin, rightMargin);
+ }
+ COMPILE::JS
+ {
+ super(font, size, color, bold, italic, underline,
+ align, leftMargin, rightMargin);
+ }
}
//--------------------------------------------------------------------------