diff options
-rw-r--r-- | fop-core/src/main/java/org/apache/fop/layoutmgr/AbstractBreaker.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fop-core/src/main/java/org/apache/fop/layoutmgr/AbstractBreaker.java b/fop-core/src/main/java/org/apache/fop/layoutmgr/AbstractBreaker.java index 9a519276e..e1e6ee538 100644 --- a/fop-core/src/main/java/org/apache/fop/layoutmgr/AbstractBreaker.java +++ b/fop-core/src/main/java/org/apache/fop/layoutmgr/AbstractBreaker.java @@ -486,7 +486,7 @@ public abstract class AbstractBreaker { } int restartPoint = getPageProvider().getStartingPartIndexForLastPage(optimalPageCount); if (restartPoint > 0) { - PageBreakPosition pbp = (PageBreakPosition) alg.getPageBreaks().get(restartPoint - 1); + PageBreakPosition pbp = alg.getPageBreaks().get(restartPoint - 1); int newStartPos = alg.par.getFirstBoxIndex(pbp.getLeafPos() + 1); return newStartPos > 0; } |