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
SubOpration newOperation = new SubOpration( );
		for ( int i = 0; i < ori.size( ); i++ )
		{
			SubTotalInfo oriInfo = (SubTotalInfo) ori.get( i );
			SubTotalInfo newInfo = (SubTotalInfo) newList.get( i );
			if ( i == 0 )
			{
				oriOperation.setLevelHandle( oriInfo.getLevel( ) );
				newOperation.setLevelHandle( newInfo.getLevel( ) );
			}
			else if ( !oriOperation.isSameOperation( oriInfo ) )
			{
				processOperation( oriOperation, newOperation );
				oriOperation = new SubOpration( );
				oriOperation.setLevelHandle( oriInfo.getLevel( ) );
				newOperation = new SubOpration( );
				newOperation.setLevelHandle( newInfo.getLevel( ) );
			}
			oriOperation.addInfo( oriInfo );
			newOperation.addInfo( newInfo );
			if ( i == ori.size( ) - 1 )
			{
				processOperation( oriOperation, newOperation );
			}
		}
	}
	private void processOperation( SubOpration oriOperation,
			SubOpration newOperation ) throws SemanticException
	{
		if ( oriOperation.getMeasures( ).size( ) == 0