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
        ReportedBy: [EMAIL PROTECTED]

if i execute 'fop 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')

    public static void removeLegalBreaks(LinkedList elements) {
        ListIterator i = elements.listIterator();
        while (i.hasNext()) {
            ListElement el = (ListElement);
            if (el.isPenalty()) {
                BreakElement breakPoss = (BreakElement)el;
                //Convert all penalties no break inhibitors
                if (breakPoss.getPenaltyValue() < KnuthPenalty.INFINITE) {
            } else if (el.isGlue()) {
                i.previous(); // here el.isBox()=false ...!
                if (el.isBox()) {
                    i.add(new KnuthPenalty(0, KnuthPenalty.INFINITE, false, 
                            null, false));

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to