diff options
author | Simon Steiner <ssteiner@apache.org> | 2024-07-31 12:48:23 +0100 |
---|---|---|
committer | Simon Steiner <ssteiner@apache.org> | 2024-07-31 12:48:23 +0100 |
commit | d071a52d9276cb34dfc46fe317810bd11aec4e84 (patch) | |
tree | 66bec6f256fa58a53d7068f25c2c8fa33d593dea | |
parent | f9e031ace069602f5a67222b32e2f1ce3fdc54fc (diff) | |
download | xmlgraphics-fop-d071a52d9276cb34dfc46fe317810bd11aec4e84.tar.gz xmlgraphics-fop-d071a52d9276cb34dfc46fe317810bd11aec4e84.zip |
Cast warning
-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; } |