You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by pi...@apache.org on 2014/11/03 21:51:19 UTC

[37/44] git commit: [flex-tlf] [refs/heads/tables] - FLEX-34611: Application crash when textFlow property set to null with preserveSelection

FLEX-34611: Application crash when textFlow property set to null with preserveSelection


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

Branch: refs/heads/tables
Commit: 7b546ef77b7b439c62e21771a591a19b6b1baf83
Parents: fad7b29
Author: Frederic THOMAS <we...@gmail.com>
Authored: Fri Oct 24 16:44:43 2014 +0200
Committer: Frederic THOMAS <we...@gmail.com>
Committed: Fri Oct 24 16:44:43 2014 +0200

----------------------------------------------------------------------
 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/7b546ef7/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 d67524a..04d8366 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)
+					if (_preserveSelectionOnSetText && text)
                     {
                         oldAnchorPosition = Math.min(_textFlow.interactionManager.anchorPosition, text.length);
                         oldActivePosition = Math.min(_textFlow.interactionManager.activePosition, text.length);