--- 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 =;
            if (tempElement instanceof ListElement) {
                        (ListElement) tempElement,
            } else if (tempElement instanceof List) {
                        (List) tempElement, 

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:
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to