Bug 148751 [regression]Page break in data inside detail of list with group will cause issue in pdf
Description: Page break in data inside detail of list with group will cause issue in pdf. Steps to reproduce: 1. Insert a list, add a group 2. Insert a data to list detail, set page-break-after always to it. 3. Preview in web viewer and pdf Expected result: Data are displayed with correct page break Actual result: In pdf, data are lost. The group contains 5 data rows but in pdf only 2 data rows are displayed.
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/PDFListGroupLM.java
}
		IListBandContent band = getHeader( );
		if ( band == null )
		{
			return;
		}
		IReportItemExecutor headerExecutor = new DOMReportItemExecutor( band );
		headerExecutor.execute( );
		ContainerArea headerArea = (ContainerArea) AreaFactory
				.createLogicContainer( );
		headerArea.setAllocatedWidth( parent.getMaxAvaWidth( ) );
		PDFRegionLM regionLM = new PDFRegionLM( context, headerArea, band,
				emitter, headerExecutor );
		boolean allowPB = context.allowPageBreak( );
		context.setAllowPageBreak( false );
		regionLM.layout( );
		context.setAllowPageBreak( allowPB );
		if ( headerArea.getAllocatedHeight( ) + currentBP < parent
				.getMaxAvaHeight( ) )
		{
			addArea( headerArea );
			repeatCount++;
		}
	}
	protected void createRoot( )
	{
		root = (ContainerArea) AreaFactory.createBlockContainer( content );
	}
}