Skip to content

Commit 48144b5

Browse files
FOP-3249: Wrong last page for multicolumn layout
1 parent 61b9bf5 commit 48144b5

File tree

2 files changed

+1063
-1
lines changed

2 files changed

+1063
-1
lines changed

fop-core/src/main/java/org/apache/fop/layoutmgr/PageBreaker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,12 +475,12 @@ private void redoLayout(PageBreakingAlgorithm alg, int partCount,
475475
//Replace last page
476476
pslm.setCurrentPage(pageProvider.getPage(false, currentPageNum));
477477
} else {
478+
setLastPageIndex(currentPageNum + 1);
478479
//Last page-master cannot hold the content.
479480
//Add areas now...
480481
addAreas(alg, restartPoint, partCount - restartPoint, originalList, effectiveList);
481482
if (!ipdChange && pslm.currentPageNum == currentPageNum) {
482483
//...and add a blank last page
483-
setLastPageIndex(currentPageNum + 1);
484484
pslm.setCurrentPage(pslm.makeNewPage(true));
485485
}
486486
return;

0 commit comments

Comments
 (0)