flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ha...@apache.org
Subject git commit: [flex-tlf] [refs/heads/develop] - Fixed last Operation test bug
Date Tue, 30 Dec 2014 19:39:28 GMT
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 <harbs@in-tools.com>
Authored: Tue Dec 30 21:39:23 2014 +0200
Committer: Harbs <harbs@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);


Mime
View raw message