[
https://issues.apache.org/jira/browse/FOP-1749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13778145#comment-13778145
]
Alexey Neyman commented on FOP-1749:
------------------------------------
Actually, this raises another question: why is boxPreceding not reset to false
for Penalty(INFINITE)? The BreakingAlgorithm
implementation performs such reset, and such reset would fix this issue too
(see above the sequence of elements in the
failing footnote).
I've taken the liberty of combining the patches to both this and FOP-2106
issues (sorry, got tired to separate them each time).
The changes from previous versions:
- [2106] instead of changing insertedFootnotesLength to totalFootnotesLength in
createNode(), make PageBreakingAlgorithm$KnuthNode
store both total and inserted lengths; make restartFrom() reset both lengths to
values stored in restartingNode
- [1749] reset boxPreceding on infinite penalties (instead of only setting it
on non-empty boxes)
- [1749,2106] Added the 2nd test case from 2106, and a unit test for 1749
> [PATCH] infinite loop in footnotes (see also #47424)
> ----------------------------------------------------
>
> Key: FOP-1749
> URL: https://issues.apache.org/jira/browse/FOP-1749
> Project: Fop
> Issue Type: Bug
> Components: page-master/layout
> Affects Versions: trunk
> Environment: Operating System: Windows XP
> Platform: PC
> Reporter: Heidi Vanparys
> Attachments: bug47424.patch, c.fo, fop-1749.diff
>
>
> This patch solves the problem of an infinite loop in footnotes as reported in
> FOP-1678.
> The infinite loop occurred in
> org.apache.fop.layoutmgr.PageBreakingAlgorithm.getFootnoteSplit(int, int,
> int, int, boolean).
> This patch does not solve the problem of another infinite loop in footnotes
> as reported in bugs 48063 and 48162. This infinite loop occurs in
> org.apache.fop.layoutmgr.PageBreakingAlgorithm.createFootnotePages(KnuthPageNode).
> The test attached to 48063 is converted to a testcase and added to the list
> of disabled testcases.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira