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

[13/25] git commit: [flex-tlf] [refs/heads/develop] - Added check for valid terminator span after replacement

Added check for valid terminator span after replacement


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

Branch: refs/heads/develop
Commit: 84e8b25b22a56e015c81f91e091e875c5f00bc71
Parents: b408e2f
Author: Harbs <ha...@in-tools.com>
Authored: Thu Oct 30 23:34:54 2014 +0200
Committer: Harbs <ha...@in-tools.com>
Committed: Thu Oct 30 23:34:54 2014 +0200

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


http://git-wip-us.apache.org/repos/asf/flex-tlf/blob/84e8b25b/textLayout/src/flashx/textLayout/elements/ParagraphElement.as
----------------------------------------------------------------------
diff --git a/textLayout/src/flashx/textLayout/elements/ParagraphElement.as b/textLayout/src/flashx/textLayout/elements/ParagraphElement.as
index 6527d7c..4ddd7c4 100644
--- a/textLayout/src/flashx/textLayout/elements/ParagraphElement.as
+++ b/textLayout/src/flashx/textLayout/elements/ParagraphElement.as
@@ -653,7 +653,7 @@ package flashx.textLayout.elements
 				}
 			}
 			//merge terminator span to previous if possible
-			if(_terminatorSpan.textLength == 1)
+			if(_terminatorSpan && _terminatorSpan.textLength == 1)
 			{
 				var prev:FlowLeafElement = _terminatorSpan.getPreviousLeaf(this);
 				if(prev && prev is SpanElement)