Skip to content

Commit

Permalink
Fix bug that caused "breakable" to remain dirty in some cases
Browse files Browse the repository at this point in the history
  • Loading branch information
bertfrees authored and joeha480 committed May 2, 2019
1 parent 688c1d3 commit 9ccffb4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ private boolean ensureBuffer(int index) {

setPreviousSheet(si.getSheetIndex()-1, Math.min(p.keepPreviousSheets(), sheetIndex-1), rcontext);
volBreakAllowed &= p.allowsVolumeBreak();
if (!sectionProperties.duplex() || pageIndex % 2 == 1) {
if (!sectionProperties.duplex() || pageIndex % 2 == 1 || volumeEnded) {
rcontext.getRefs().keepBreakable(si, volBreakAllowed);
}
s.add(p);
Expand Down

0 comments on commit 9ccffb4

Please sign in to comment.