https://issues.apache.org/bugzilla/show_bug.cgi?id=41500





--- Comment #6 from Andreas L. Delmelle <[EMAIL PROTECTED]>  2008-04-27 
01:42:48 PST ---
FWIW, the following implementation of
BlockContainerLayoutManager.wrapPositionElements() seems to fix the issue:

---
    protected void wrapPositionElements(List sourceList, List targetList,
boolean force) {

        ListIterator listIter = sourceList.listIterator();
        Object tempElement;
        while (listIter.hasNext()) {
            tempElement = listIter.next();
            if (tempElement instanceof ListElement) {
                wrapPositionElement(
                        (ListElement) tempElement,
                        targetList,
                        force);
            } else if (tempElement instanceof List) {
                wrapPositionElements(
                        (List) tempElement, 
                        targetList,
                        force);
            }
        }
    }
---

Haven't committed it, since I still need to do some more thorough checking, and
I'm not sure if this is the best way to avoid this error.
The problem is that the original implementation assumes that all the elements
of the list will be instances of ListElement, where the WrapperLayoutManager
generates an InlineKnuthSequence. This quick and dirty fix simply takes this
possibility into account and changes the behavior in that case.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to