Menu

#33 Bug in prcessGroupHeader function

1.0
closed
aliks-os
None
2015-07-08
2015-07-06
Mauro Anjo
No

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

Discussion

  • aliks-os

    aliks-os - 2015-07-08

    Hello

    Yes, this is typo. Many thanks for correction. Corrected in the local repo, and will be uploaded to SVN after two weeks...

     
  • aliks-os

    aliks-os - 2015-07-08
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB