diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-10-20 08:09:22 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-10-20 08:09:22 +0000 |
commit | 5637bf5079cdcdf563b267a4890eba45b852210f (patch) | |
tree | 45bb853611d6ef27be6bfd843486be5de667053d | |
parent | 0871aea1d9e9ef2eab48eb3682493c3e2ba681e0 (diff) | |
download | xmlgraphics-fop-5637bf5079cdcdf563b267a4890eba45b852210f.tar.gz xmlgraphics-fop-5637bf5079cdcdf563b267a4890eba45b852210f.zip |
Fix for ClassCastException
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_SpaceResolution@326855 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java b/src/java/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java index 76291a81e..ac0abc26e 100644 --- a/src/java/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java @@ -255,8 +255,7 @@ public abstract class BlockStackingLayoutManager extends AbstractLayoutManager } if (returnedList != null && returnedList.size() == 1 - && ((KnuthElement) returnedList.getFirst()).isPenalty() - && ((KnuthPenalty) returnedList.getFirst()).getP() == -KnuthElement.INFINITE) { + && ((ListElement) returnedList.getFirst()).isForcedBreak()) { // a descendant of this block has break-before if (returnList.size() == 0) { // the first child (or its first child ...) has |