From 7e9620f7ade802387c6eddf221525afd03c6085a Mon Sep 17 00:00:00 2001 From: greg-dove Date: Thu, 26 May 2022 08:41:12 +1200 Subject: [PATCH] Fix swf build (was:duplicate function/method declaration) --- .../src/main/royale/mx/controls/Label.as | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/Label.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/Label.as index fa1a2fa04b..92098b597a 100644 --- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/Label.as +++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/Label.as @@ -772,6 +772,18 @@ public class Label extends UIComponent super.addedToParent(); model.addEventListener("textChange", repeaterListener); model.addEventListener("htmlChange", repeaterListener); + //@todo check the following for swf: + //truncateToFit = _truncateToFit; + } + + /** + * @private + */ + COMPILE::JS + override public function addedToParent():void + { + super.addedToParent(); + truncateToFit = _truncateToFit; } /** @@ -916,11 +928,6 @@ public class Label extends UIComponent _truncateToFit = value; } - override public function addedToParent():void - { - super.addedToParent(); - truncateToFit = _truncateToFit; - } //--------------------------------------------------------------------------