aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Steiner <ssteiner@apache.org>2024-07-31 12:48:23 +0100
committerSimon Steiner <ssteiner@apache.org>2024-07-31 12:48:23 +0100
commitd071a52d9276cb34dfc46fe317810bd11aec4e84 (patch)
tree66bec6f256fa58a53d7068f25c2c8fa33d593dea
parentf9e031ace069602f5a67222b32e2f1ce3fdc54fc (diff)
downloadxmlgraphics-fop-d071a52d9276cb34dfc46fe317810bd11aec4e84.tar.gz
xmlgraphics-fop-d071a52d9276cb34dfc46fe317810bd11aec4e84.zip
Cast warning
-rw-r--r--fop-core/src/main/java/org/apache/fop/layoutmgr/AbstractBreaker.java2
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;
}