royale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ha...@apache.org
Subject [royale-asjs] branch develop updated: Fixes #39
Date Sat, 28 Oct 2017 21:29:57 GMT
This is an automated email from the ASF dual-hosted git repository.

harbs 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 abba2d5  Fixes #39
abba2d5 is described below

commit abba2d58281660ce7606c19a9631f1d6da4171a5
Author: Harbs <harbs@in-tools.com>
AuthorDate: Sun Oct 29 00:29:53 2017 +0300

    Fixes #39
---
 .../main/royale/org/apache/royale/html/beads/models/RangeModel.as | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/models/RangeModel.as
b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/models/RangeModel.as
index c7c03a1..22c6abe 100644
--- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/models/RangeModel.as
+++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/beads/models/RangeModel.as
@@ -139,13 +139,15 @@ package org.apache.royale.html.beads.models
 				_snapInterval = value;
 				dispatchEvent(new Event("snapIntervalChange"));
 			}
-			if(value < 1)
+			if(("" + value).indexOf(".") == -1)
+			{
+				_decimals = 0;
+			}
+			else
 			{
 				var str:String = "" + value;
 				_decimals = str.substr(str.indexOf(".")+1).length;
 			}
-			else
-				_decimals = 0;
 		}
 		private var _decimals:int;
 		

-- 
To stop receiving notification emails like this one, please contact
['"commits@royale.apache.org" <commits@royale.apache.org>'].

Mime
View raw message