https://issues.apache.org/bugzilla/show_bug.cgi?id=44607
Summary: Endless loop in ElementListUtils
Product: Fop
Version: 0.94
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: critical
Priority: P2
Component: fo tree
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
if i execute 'fop FOP_Error.fo fo-result.pdf'
from the command-line using 'fop-0.94-bin',
FOP-0.94 runs into an endless loop.
Under FOP-0.93 it works fine.
The problem is the second fo:block
(with content 'Inner table: 2,1, block 2')
org.apache.fop.layoutmgr.ElementListUtils
...
public static void removeLegalBreaks(LinkedList elements) {
ListIterator i = elements.listIterator();
while (i.hasNext()) {
ListElement el = (ListElement)i.next();
if (el.isPenalty()) {
BreakElement breakPoss = (BreakElement)el;
//Convert all penalties no break inhibitors
if (breakPoss.getPenaltyValue() < KnuthPenalty.INFINITE) {
breakPoss.setPenaltyValue(KnuthPenalty.INFINITE);
}
} else if (el.isGlue()) {
i.previous(); // here el.isBox()=false ...!
if (el.isBox()) {
i.next();
i.add(new KnuthPenalty(0, KnuthPenalty.INFINITE, false,
null, false));
}
}
}
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.