Bug in prcessGroupHeader function
Easy-to-use print report library and designer
Brought to you by:
aliks-os
Hello Alik,
I found a small bug in the prcessGroupHeader function. At the end before drawing the Data Group Footer you check to see the need of creating a new page. But insted of checking with the Data Group Footer Height you check with the Data Group Header height, probably a typo.
if (y + pageList.at(pageReport)->getBand(DataGroupFooter)->height > ph-mb-mt-yPF-yMF)
newPage(printer, y, draw);
//-----------ends here. Thanks to puterk
if (pageList.at(pageReport)->getBand(DataGroupFooter) != 0) {
if (allowPrintPage(draw,curPage)) { //Draw footer of the group
drawBandRow(pageList.at(pageReport)->getBand(DataGroupFooter), y);
}
y += pageList.at(pageReport)->getBand(DataGroupFooter)->height;
}
Regards
Hello
Yes, this is typo. Many thanks for correction. Corrected in the local repo, and will be uploaded to SVN after two weeks...