private void pChangeHeightSection(cReportSection sec, float oldSecHeight) {
int i = 0;
float heightLines = 0;
cReportAspect w_aspect;
// Update section line
//
for (i = 1; i <= sec.getSectionLines().count() - 1; i++) {
w_aspect = sec.getSectionLines().item(i).getAspect();
heightLines = heightLines + w_aspect.getHeight();
}
// for the last section line the height is the rest
//
cReportSectionLines w_sectionLines = sec.getSectionLines();
w_aspect = w_sectionLines.item(w_sectionLines.count()).getAspect();
w_aspect.setHeight(sec.getAspect().getHeight() - heightLines);
pChangeTopSection(sec, 0, false, true);
}