Bug 192796 In pdf xtab move to next page with a label before it.[1102]
Description: In pdf xtab move to next page with a label before it. Build number:2.2.0.v20070615 Steps to reproduce: 1. Open attached xtab report. 2. Preview in pdf. 3. Remove the label item and preview in pdf again. Expected result: A label before the xtab will not cause the whole xtab moving to the second page. Actual result: In step2, xtab displays in the second page. In step3, xtab displays in the first page. Error log:n/a
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/PDFTableLM.java
if(total<leftPercentage)
					{
						double delta = leftPercentage - total;
						for(int i=0; i<unsetList.size(); i++)
						{
							Integer index = (Integer)unsetList.get(i);
							columns[index.intValue()] = new DimensionType(delta
									/ (double) unsetList.size(),
									EngineIRConstants.UNITS_PERCENTAGE);
						}
					}
					else
					{
						double ratio = leftPercentage/total;
						for(int i=0; i<unsetList.size(); i++)
						{
							Integer index = (Integer)unsetList.get(i);
							columns[index.intValue()] = new DimensionType(0d, EngineIRConstants.UNITS_PT);
						}
						for(int i=0; i<percentageList.size(); i++)
						{
							Integer index = (Integer)percentageList.get(i);
							columns[index.intValue()] = new DimensionType(columns[index
									.intValue()].getMeasure()
									* ratio, columns[index.intValue()].getUnits());
						}
					}
				}
			}