Bug 173601 [regression]Group should begin from the second page when setting group page break before to always[0001]
[regression]Group should begin from the second page when setting group page break before to always[0001] Build number: 2.2.0.v20070209-0630 Steps to reproduce: 1.new a report 2.new a sample DB data source and select the OFFICES table as data set 3.drag the data set to layout and add a group on COUNTRY and set page break before to always 4.preview in web viewer/pdf/postscript Expected result: There'll be 6 pages,group begins from the second page Actual result: 5 pages displayed ,group begins from the first page Error log: N/A
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/PDFTableLM.java
{
					return;
				}
			}
		}
		PDFReportLayoutEngine engine = context.getLayoutEngine( );
		PDFLayoutEngineContext con = new PDFLayoutEngineContext( engine );
		con.setFactory( new PDFLayoutManagerFactory( con ) );
		con.setFormat( context.getFormat( ) );
		con.setReport( context.getReport( ) );
		con.setMaxHeight( context.getMaxHeight( ) );
		con.setMaxWidth( context.getMaxWidth( ) );
		con.setAllowPageBreak( false );
		IReportItemExecutor headerExecutor = new DOMReportItemExecutor( header );
		headerExecutor.execute( );
		PDFTableRegionLM regionLM = new PDFTableRegionLM( con, tableContent,
				layoutInfo );
		regionLM.initialize( header, null );
		regionLM.layout( );
		TableArea tableRegion = (TableArea) tableContent
				.getExtension( IContent.LAYOUT_EXTENSION );
		if ( tableRegion != null
				&& tableRegion.getHeight( ) < getCurrentMaxContentHeight( ) )
		{
			
			Iterator iter = tableRegion.getChildren( );
			RowArea row = null;
			while ( iter.hasNext( ) )
			{
				row = (RowArea) iter.next( );