import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+
import org.apache.fop.fo.Constants;
import org.apache.fop.traits.MinOptMax;
nextSequenceStartsOn = handleSpanChange(childLC, nextSequenceStartsOn);
Position breakPosition = null;
- if (((KnuthElement) returnedList.getLast()).isPenalty()
- && ((KnuthPenalty) returnedList.getLast()).getP() == -KnuthElement.INFINITE) {
- KnuthPenalty breakPenalty = (KnuthPenalty) returnedList
- .removeLast();
+ if (((KnuthElement) returnedList.getLast()).isForcedBreak()) {
+ KnuthPenalty breakPenalty = (KnuthPenalty)returnedList.removeLast();
breakPosition = breakPenalty.getPosition();
switch (breakPenalty.getBreakClass()) {
case Constants.EN_PAGE: