Bug 192101 Add measure to xtab should add measure label automatically[1102]
Description: Add measure to xtab should add measure label automatically even no content in column area. Build number:2.2.0.v20070612 Steps to reproduce: 1. New a cube. 2. Insert a xtab, drag group to row area and then drag measure to detail area. Expected result: Label for measure is inserted automatically. Actual result: Label for measure isn't inserted automatically. But if you drag a group to column area, the label will be inserted at this time. Error log:N/A
xtab/org.eclipse.birt.report.item.crosstab.ui/src/org/eclipse/birt/report/item/crosstab/internal/ui/editors/model/CrosstabHandleAdapter.java
}
		map.put( COLUMNAREA_COLUMN, new Integer( columnNumber ) );
		map.put( COLUMNAREA_ROW, new Integer( rowNumber ) );
		
		covertRowNumber( rowNumber, retValue );
		
		return retValue;
	}
	private void covertRowNumber( int rowNumber, List cells )
	{
		int size = cells.size( );
		for ( int i = 0; i < size; i++ )
		{
			CrosstabCellAdapter adapter = (CrosstabCellAdapter) cells.get( i );
			adapter.setRowNumber( rowNumber - adapter.getRowNumber( ) + 1 );
		}
		if ( isPageLayoutOver( ) )
		{
			for ( int i = 0; i < size; i++ )
			{
				CrosstabCellAdapter adapter = (CrosstabCellAdapter) cells.get( i );
				int row = adapter.getRowNumber( );
				int rowSpan = adapter.getRowSpan( );
				int column = adapter.getColumnNumber( );
				int columnSpan = adapter.getColumnSpan( );
				if ( adapter.getPositionType( )
						.equals( ICrosstabCellAdapterFactory.CELL_SUB_TOTAL ) )
				{
					adapter.setRowNumber( row - 1 );
					adapter.setRowSpan( rowSpan + 1 );