Bug 211978 [Automation][Acceptance]Exception is thrown out when preview report in PDF
Description: Exception is thrown out when preview report in PDF Test Date: 20071205 Test Build: BIRT2.3.0 DailyBuildv20071205 0800 Step to reproduce: 1. Use the report attached 2. Preview it in PDF Expect result: Report should be previewed without any exception Actual result: A StringIndexOUtOfBoundsException is thrown out
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/PDFLineAreaLM.java
int height = root.getHeight( );
		int lineHeight = ( (PDFBlockStackingLM) parent ).getLineHeight( );
		
		
		 
		if (lineHeight > maxAvaHeight)
		{
			lineHeight = 0;
		}
		
		if ( parent.isPageEmpty() )
		{
			height = Math.min( maxAvaHeight, Math.max( height, lineHeight ) );
		}
		else
		{
			height = Math.max( height, lineHeight );
		}
		root.setContentHeight( height );
	}
	protected void align( boolean lastLine)
	{
		if ( root == null )
		{
			return;
		}
		assert ( parent instanceof PDFBlockStackingLM );
		String align = ( (PDFBlockStackingLM) parent ).getTextAlign( );
		
		if ( ( CSSConstants.CSS_RIGHT_VALUE.equalsIgnoreCase( align ) || CSSConstants.CSS_CENTER_VALUE