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 <[email protected]> Authored: Tue Dec 30 21:39:23 2014 +0200 Committer: Harbs <[email protected]> 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);
