flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pio...@apache.org
Subject [37/44] git commit: [flex-tlf] [refs/heads/tables] - FLEX-34611: Application crash when textFlow property set to null with preserveSelection
Date Mon, 03 Nov 2014 20:51:19 GMT
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 <webdoublefx@gmail.com>
Authored: Fri Oct 24 16:44:43 2014 +0200
Committer: Frederic THOMAS <webdoublefx@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);


Mime
View raw message