Bug 192796 In pdf xtab move to next page with a label before it.[1102]
Description: In pdf xtab move to next page with a label before it. Build number:2.2.0.v20070615 Steps to reproduce: 1. Open attached xtab report. 2. Preview in pdf. 3. Remove the label item and preview in pdf again. Expected result: A label before the xtab will not cause the whole xtab moving to the second page. Actual result: In step2, xtab displays in the second page. In step3, xtab displays in the first page. Error log:n/a
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/PDFTableLM.java
cell.setColSpan( tableContent.getColumnCount( ) );
		cell.setRowSpan( 1 );
		cell.setColumn( 0 );
		captionLabel.setParent( cell );
		cell.getChildren( ).add( captionLabel );
		IRowContent row = report.createRowContent( );
		row.getChildren( ).add( cell );
		cell.setParent( row );
		ITableBandContent band = report.createTableBandContent( );
		band.getChildren( ).add( row );
		row.setParent( band );
		band.setParent( tableContent );
		PDFTableRegionLM regionLM = getTableRegionLayout();
		regionLM.initialize( band );
		regionLM.layout( );
		TableArea tableRegion = (TableArea) content
				.getExtension( IContent.LAYOUT_EXTENSION );
		if ( tableRegion != null
				&& tableRegion.getHeight( ) < getCurrentMaxContentHeight( ) )
		{
			
			Iterator iter = tableRegion.getChildren( );
			while ( iter.hasNext( ) )
			{
				RowArea rowArea = (RowArea) iter.next( );
				addArea( rowArea, false, false );
				repeatRowCount++;
			}
		}
		content.setExtension( IContent.LAYOUT_EXTENSION, null );