flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ha...@apache.org
Subject [1/2] git commit: [flex-tlf] [refs/heads/tables] - the original change broke a few tests. I think this one is better
Date Thu, 27 Nov 2014 08:28:14 GMT
Repository: flex-tlf
Updated Branches:
  refs/heads/tables 863d00f86 -> 5357c43c2


the original change broke a few tests.  I think this one is better


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

Branch: refs/heads/tables
Commit: 222d745e8023772bf9be38b907e0a7089ac86da1
Parents: 1d79e24
Author: Alex Harui <aharui@apache.org>
Authored: Wed Nov 19 23:13:00 2014 +0000
Committer: Alex Harui <aharui@apache.org>
Committed: Wed Nov 19 23:13:00 2014 +0000

----------------------------------------------------------------------
 textLayout/src/flashx/textLayout/container/TextContainerManager.as | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-tlf/blob/222d745e/textLayout/src/flashx/textLayout/container/TextContainerManager.as
----------------------------------------------------------------------
diff --git a/textLayout/src/flashx/textLayout/container/TextContainerManager.as b/textLayout/src/flashx/textLayout/container/TextContainerManager.as
index 04d8366..a89566a 100644
--- a/textLayout/src/flashx/textLayout/container/TextContainerManager.as
+++ b/textLayout/src/flashx/textLayout/container/TextContainerManager.as
@@ -578,7 +578,7 @@ package flashx.textLayout.container
 					hadPreviousSelection = true;
 					
 					//preserve the selection state [bug #2931406 from Flex SDK]
-					if (_preserveSelectionOnSetText && text)
+					if (_preserveSelectionOnSetText && text != null)
                     {
                         oldAnchorPosition = Math.min(_textFlow.interactionManager.anchorPosition,
text.length);
                         oldActivePosition = Math.min(_textFlow.interactionManager.activePosition,
text.length);


Mime
View raw message