Bug 155007 Group Toc doesn't work well
Group Toc doesn't work well Steps to reproduce: run the attached file and preview it in html/web viewer/PDF Expected results: Group toc works well Actual results: Group toc doesn't work well
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/data/dte/ReportQueryBuilder.java
{
			if ( queryStack.isEmpty( ) )
				return null;
			return (IBaseTransform) queryStack.getLast( );
		}
		/**
		 * @return the parent query for the current report item
		 */
		protected BaseQueryDefinition getParentQuery( )
		{
			if ( queryStack.isEmpty( ) )
				return null;
			for ( int i = queryStack.size( ) - 1; i >= 0; i-- )
			{
				if ( queryStack.get( i ) instanceof BaseQueryDefinition )
					return (BaseQueryDefinition) queryStack.get( i );
			}
			return null;
		}		
		
		/**
		 * @return the current group which the current report item be included
		 */
		protected GroupDefinition getCurrentGroup( )
		{
			if ( queryStack.isEmpty( ) )
				return null;
			if ( queryStack.getLast( ) instanceof GroupDefinition )
			{
				return (GroupDefinition) queryStack.getLast( );