aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/layoutmgr/InlineKnuthSequence.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache/fop/layoutmgr/InlineKnuthSequence.java')
-rw-r--r--src/java/org/apache/fop/layoutmgr/InlineKnuthSequence.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/InlineKnuthSequence.java b/src/java/org/apache/fop/layoutmgr/InlineKnuthSequence.java
index 6932b7600..788339790 100644
--- a/src/java/org/apache/fop/layoutmgr/InlineKnuthSequence.java
+++ b/src/java/org/apache/fop/layoutmgr/InlineKnuthSequence.java
@@ -70,11 +70,11 @@ public class InlineKnuthSequence extends KnuthSequence {
return false;
}
// does the first element of the first paragraph add to an existing word?
- KnuthElement lastOldElement, firstNewElement;
+ ListElement lastOldElement, firstNewElement;
lastOldElement = getLast();
firstNewElement = sequence.getElement(0);
- if (firstNewElement.isBox() && !firstNewElement.isAuxiliary()
- && lastOldElement.isBox() && lastOldElement.getW() != 0) {
+ if (firstNewElement.isBox() && !((KnuthElement) firstNewElement).isAuxiliary()
+ && lastOldElement.isBox() && ((KnuthElement) lastOldElement).getW() != 0) {
addALetterSpace();
}
addAll(sequence);