You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ha...@apache.org on 2014/12/30 20:39:28 UTC

git commit: [flex-tlf] [refs/heads/develop] - Fixed last Operation test bug

Repository: flex-tlf
Updated Branches:
  refs/heads/develop dc9d693c6 -> 523bedde3


Fixed last Operation test bug


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

Branch: refs/heads/develop
Commit: 523bedde35734561bf58bd109801980ca7db04fe
Parents: dc9d693
Author: Harbs <ha...@in-tools.com>
Authored: Tue Dec 30 21:39:23 2014 +0200
Committer: Harbs <ha...@in-tools.com>
Committed: Tue Dec 30 21:39:23 2014 +0200

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


http://git-wip-us.apache.org/repos/asf/flex-tlf/blob/523bedde/textLayout/src/flashx/textLayout/edit/ParaEdit.as
----------------------------------------------------------------------
diff --git a/textLayout/src/flashx/textLayout/edit/ParaEdit.as b/textLayout/src/flashx/textLayout/edit/ParaEdit.as
index 4af7e23..ab7010b 100644
--- a/textLayout/src/flashx/textLayout/edit/ParaEdit.as
+++ b/textLayout/src/flashx/textLayout/edit/ParaEdit.as
@@ -123,7 +123,7 @@ package flashx.textLayout.edit
 					}
 				}
 				var nextLeaf:FlowLeafElement = paragraph.findLeaf(paraSelBegIdx);
-				if(nextLeaf && nextLeaf.textLength == 1 && nextLeaf == paragraph.terminatorSpan)
+				if(nextLeaf && nextLeaf.textLength == 1 && nextLeaf.parent == insertParent && nextLeaf == paragraph.terminatorSpan)
 				{
 					// use the terminator span instead of inserting a new one.
 					newSpan = SpanElement(nextLeaf);