git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_KnuthStylePageBreaking@198522
13f79535-47bb-0310-9956-
ffa450edef68
* @see org.apache.fop.layoutmgr.BlockLevelLayoutManager#mustKeepTogether()
*/
public boolean mustKeepTogether() {
- return !fobj.getKeepTogether().getWithinPage().isAuto();
+ return ((BlockLevelLayoutManager)getParent()).mustKeepTogether()
+ || !fobj.getKeepTogether().getWithinPage().isAuto();
}
/**
* @see org.apache.fop.layoutmgr.BlockLevelLayoutManager#mustKeepTogether()
*/
public boolean mustKeepTogether() {
- return !fobj.getKeepTogether().getWithinPage().isAuto();
+ return ((BlockLevelLayoutManager)getParent()).mustKeepTogether()
+ || !fobj.getKeepTogether().getWithinPage().isAuto();
}
/**
PageBreaker breaker = new PageBreaker(this);
breaker.doLayout(flowBPD);
- // TODO: Don't decrement currentPageNum when no pages are generated
- currentPageNum--;
finishPage();
pageSeq.getRoot().notifyPageSequenceFinished(currentPageNum,
(currentPageNum - startPageNum) + 1);