This is an automated email from the ASF dual-hosted git repository.

yishayw 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 37c2322  Currency formatter doesn't work with undefined rounding
37c2322 is described below

commit 37c2322313ebfd6021aca2bb595f7306833e44ab
Author: DESKTOP-RH4S838\Yishay <[email protected]>
AuthorDate: Sat Apr 4 15:30:42 2020 +0300

    Currency formatter doesn't work with undefined rounding
---
 .../MXRoyale/src/main/royale/mx/formatters/CurrencyFormatter.as      | 5 +++++
 1 file changed, 5 insertions(+)

diff --git 
a/frameworks/projects/MXRoyale/src/main/royale/mx/formatters/CurrencyFormatter.as
 
b/frameworks/projects/MXRoyale/src/main/royale/mx/formatters/CurrencyFormatter.as
index f360ed8..d811a12 100644
--- 
a/frameworks/projects/MXRoyale/src/main/royale/mx/formatters/CurrencyFormatter.as
+++ 
b/frameworks/projects/MXRoyale/src/main/royale/mx/formatters/CurrencyFormatter.as
@@ -99,6 +99,11 @@ public class CurrencyFormatter extends Formatter
        public function CurrencyFormatter()
        {
                super();
+               // this is needed to ensure there's default rounding until 
resourceManager is implemented
+               if (!rounding)
+               {
+                       rounding = null; 
+               }
        }
 
        
//--------------------------------------------------------------------------

Reply via email to