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
setCurrentIP( getCurrentIP( ) + area.getAllocatedWidth( ) );
		
		if ( getCurrentIP() > root.getContentWidth( ))
		{
			root.setContentWidth( getCurrentIP() );
		}
		if ( getCurrentBP() + area.getAllocatedHeight( ) > root.getContentHeight( ))
		{
			root.setContentHeight( getCurrentBP() + area.getAllocatedHeight( ) );
		}
		
		root.addChild( area );
		lineFinished = false;
	}
	
	protected void justify()
	{
		int spacing = root.getContentWidth( ) - getCurrentIP( );
		int blankNumber = 0;
		int charNumber = 0;
		int[] blanks = new int[root.getChildrenCount( )];
		int[] chars = new int[root.getChildrenCount( )];
		Iterator iter = root.getChildren( );
		int index = 0;
		while ( iter.hasNext( ) )
		{
			AbstractArea area = (AbstractArea) iter.next( );
			if(area instanceof TextArea)
			{
				String text = ((TextArea)area).getText( );