Repository: flex-tlf Updated Branches: refs/heads/develop fad7b298e -> 7b546ef77
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/develop Commit: 7b546ef77b7b439c62e21771a591a19b6b1baf83 Parents: fad7b29 Author: Frederic THOMAS <[email protected]> Authored: Fri Oct 24 16:44:43 2014 +0200 Committer: Frederic THOMAS <[email protected]> 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);
