Fixed a RTE when trying to justify lines which contain Table Blocks
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 @@
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
{