         			
 		// For truncation, need to know if all lines have been composed.
         var createdAllLines:Boolean = false;
+        // sometimes we need to create an extra line in order to compute
+        // truncation
+        var extraLine:Boolean;
         
 		// Generate TextLines, stopping when we run out of text
 		// or reach the bottom of the requested bounds.

        if (lineCountLimit != -1 && textLines.length > lineCountLimit)
            return false;
        
        // No lines or no height restriction.
        if (!textLines.length || isNaN(height))
            return true;

            
			if (!nextTextLine)
            {
				createdAllLines = !extraLine;
                break;
            }
			
