You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by gr...@apache.org on 2022/10/04 03:05:47 UTC
[royale-asjs] branch develop updated: Small fix to last change in mx ProgressBar: the 'default' label string should only be applied for a null assignment. An empty string is valid for label.
This is an automated email from the ASF dual-hosted git repository.
gregdove pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
The following commit(s) were added to refs/heads/develop by this push:
new b2d9646aa2 Small fix to last change in mx ProgressBar: the 'default' label string should only be applied for a null assignment. An empty string is valid for label.
b2d9646aa2 is described below
commit b2d9646aa291bae3cb71d0fb64b8a91a8326a908
Author: greg-dove <gr...@gmail.com>
AuthorDate: Tue Oct 4 15:31:09 2022 +1300
Small fix to last change in mx ProgressBar: the 'default' label string should only be applied for a null assignment. An empty string is valid for label.
---
frameworks/projects/MXRoyale/src/main/royale/mx/controls/ProgressBar.as | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/ProgressBar.as b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/ProgressBar.as
index 090797ed76..87b2224799 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/controls/ProgressBar.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/controls/ProgressBar.as
@@ -519,7 +519,7 @@ public class ProgressBar extends UIComponent //implements IFontContextComponent
// value :
// resourceManager.getString(
// "controls", "label");
- _label = value ? value : 'LOADING %3%%'; //text literal used here as default is en_US controls.label property from Flex
+ _label = value != null ? value : 'LOADING %3%%'; //text literal used here as default is en_US controls.label property from Flex
COMPILE::JS
{