From d071a52d9276cb34dfc46fe317810bd11aec4e84 Mon Sep 17 00:00:00 2001 From: Simon Steiner Date: Wed, 31 Jul 2024 12:48:23 +0100 Subject: [PATCH] Cast warning --- .../src/main/java/org/apache/fop/layoutmgr/AbstractBreaker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5