flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcl...@apache.org
Subject [1/3] git commit: [flex-sdk] [refs/heads/develop] - Fixed RTE in tests. It may be that the code in Divider box is incorrect and it confusing no dividers (= no of children-1) and number of children.
Date Sat, 08 Jun 2013 08:10:57 GMT
Updated Branches:
  refs/heads/develop 3777b5ff0 -> 051867db4


Fixed RTE in tests. It may be that the code in Divider box is incorrect and it confusing no
dividers (= no of children-1) and number of children.


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/f5ba8748
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/f5ba8748
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/f5ba8748

Branch: refs/heads/develop
Commit: f5ba8748dd9625453d30cd1eda861fbbafabfdc5
Parents: 3777b5f
Author: Justin Mclean <jmclean@apache.org>
Authored: Sat Jun 8 18:08:18 2013 +1000
Committer: Justin Mclean <jmclean@apache.org>
Committed: Sat Jun 8 18:08:18 2013 +1000

----------------------------------------------------------------------
 .../projects/mx/src/mx/containers/DividedBox.as    |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/f5ba8748/frameworks/projects/mx/src/mx/containers/DividedBox.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/mx/src/mx/containers/DividedBox.as b/frameworks/projects/mx/src/mx/containers/DividedBox.as
index a426c8a..223e539 100644
--- a/frameworks/projects/mx/src/mx/containers/DividedBox.as
+++ b/frameworks/projects/mx/src/mx/containers/DividedBox.as
@@ -538,7 +538,7 @@ public class DividedBox extends Box
            	if (!liveDragging && activeDivider)
            		return dividerLayer.numChildren-1;
            	else
-			return dividerLayer.numChildren;
+				return dividerLayer.numChildren;
 		else 
 			return 0;
 	}
@@ -793,10 +793,10 @@ public class DividedBox extends Box
 	{
 		if (dividerLayer) {
 			// Check whether this is a valid divider index.
-			if (i < 0 || i >= numDividers)
+			if (i < 0 || i >= dividerLayer.numChildren)
 				return null;
-			
-			return BoxDivider(dividerLayer.getChildAt(i));
+			else
+				return BoxDivider(dividerLayer.getChildAt(i));
 		}
 		else {
 			return null;


Mime
View raw message