You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ha...@apache.org on 2017/04/26 20:45:21 UTC
git commit: [flex-asjs] [refs/heads/tlf] - This was not automatically
being converted to an int in Javascript
Repository: flex-asjs
Updated Branches:
refs/heads/tlf fc02496bb -> 66febb899
This was not automatically being converted to an int in Javascript
Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/66febb89
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/66febb89
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/66febb89
Branch: refs/heads/tlf
Commit: 66febb89986376e4e410f019e70fc4fbbfd85443
Parents: fc02496
Author: Harbs <ha...@in-tools.com>
Authored: Wed Apr 26 23:45:16 2017 +0300
Committer: Harbs <ha...@in-tools.com>
Committed: Wed Apr 26 23:45:16 2017 +0300
----------------------------------------------------------------------
.../flex/org/apache/flex/textLayout/elements/FlowGroupElement.as | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/66febb89/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/elements/FlowGroupElement.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/elements/FlowGroupElement.as b/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/elements/FlowGroupElement.as
index 9488b3e..c600499 100644
--- a/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/elements/FlowGroupElement.as
+++ b/frameworks/projects/TLF/src/main/flex/org/apache/flex/textLayout/elements/FlowGroupElement.as
@@ -198,7 +198,7 @@ package org.apache.flex.textLayout.elements
var lo:int = 0;
while (lo <= hi)
{
- var mid:int = (lo + hi) / 2;
+ var mid:int = Math.floor((lo + hi) / 2);
var p:IFlowElement = _childArray[mid];
if (p.parentRelativeStart == child.parentRelativeStart)
{