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 2015/07/12 00:06:44 UTC

git commit: [flex-tlf] [refs/heads/develop] - Fixed a RTE when trying to justify lines which contain Table Blocks

Repository: flex-tlf
Updated Branches:
  refs/heads/develop fa50829e2 -> 2ae535510


Fixed a RTE when trying to justify lines which contain Table Blocks


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

Branch: refs/heads/develop
Commit: 2ae535510e31c29c74c3f157c4c92cc22abb1c99
Parents: fa50829
Author: Harbs <ha...@in-tools.com>
Authored: Sun Jul 12 01:06:36 2015 +0300
Committer: Harbs <ha...@in-tools.com>
Committed: Sun Jul 12 01:06:36 2015 +0300

----------------------------------------------------------------------
 textLayout/src/flashx/textLayout/compose/ComposeState.as | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-tlf/blob/2ae53551/textLayout/src/flashx/textLayout/compose/ComposeState.as
----------------------------------------------------------------------
diff --git a/textLayout/src/flashx/textLayout/compose/ComposeState.as b/textLayout/src/flashx/textLayout/compose/ComposeState.as
index 171e1b6..e9d53ea 100644
--- a/textLayout/src/flashx/textLayout/compose/ComposeState.as
+++ b/textLayout/src/flashx/textLayout/compose/ComposeState.as
@@ -208,8 +208,14 @@ package flashx.textLayout.compose
 			super.applyVerticalAlignmentToColumn(controller, vjType, lines, beginIndex, numLines, beginFloatIndex, endFloatIndex);
 			
 			// Reposition lines in case they got aligned after being added to _linesInView
-			for each (var textLine:TextLine in controller.composedLines)
+			for each (var composedLine:Object in controller.composedLines)
 			{
+				if( !(composedLine is TextLine) )
+				{
+					//only deal with TextLines. Not TableBlocks
+					continue;
+				}
+				var textLine:TextLine = composedLine as TextLine;
 				var line:TextFlowLine = textLine.userData as TextFlowLine;
 				CONFIG::debug
 				{