Bug 207825 Crosstab gives wrong default for Totals on Count
xtab/org.eclipse.birt.report.item.crosstab.ui/src/org/eclipse/birt/report/item/crosstab/internal/ui/editors/action/AddSubTotalAction.java
{
		GrandOpration oriOperation = new GrandOpration( );
		GrandOpration newOperation = new GrandOpration( );
		for ( int i = 0; i < ori.size( ); i++ )
		{
			GrandTotalInfo oriInfo = (GrandTotalInfo) ori.get( i );
			GrandTotalInfo newInfo = (GrandTotalInfo) newList.get( i );
			oriOperation.addInfo( oriInfo );
			newOperation.addInfo( newInfo );
			if ( i == ori.size( ) - 1 )
			{
				processOperation( oriOperation, newOperation, axisType );
			}
		}
	}
	private void processOperation( GrandOpration oriOperation,
			GrandOpration newOperation, int axisType ) throws SemanticException
	{
		if ( oriOperation.getMeasures( ).size( ) == 0
				&& newOperation.getMeasures( ).size( ) == 0 )
		{
			return;
		}
		if ( oriOperation.getMeasures( ).size( ) == 0
				&& newOperation.getMeasures( ).size( ) != 0 )
		{
			addGrandTotal( levelHandle.getCrosstab( ),
					axisType,
					newOperation.getFunctions( ),
					findMeasureViewHandleList( newOperation.getMeasures( ) ) );