ASF Bugzilla – Attachment 21922 Details for
Bug 37579
footnotes within tables and listsl get lost
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for FootnoteBodyLayoutManager
b37579_2.patch (text/plain), 1.47 KB, created by
Andreas L. Delmelle
on 2008-05-05 10:42:16 UTC
(
hide
)
Description:
Patch for FootnoteBodyLayoutManager
Filename:
MIME Type:
Creator:
Andreas L. Delmelle
Created:
2008-05-05 10:42:16 UTC
Size:
1.47 KB
patch
obsolete
>Index: src/java/org/apache/fop/layoutmgr/FootnoteBodyLayoutManager.java >=================================================================== >--- src/java/org/apache/fop/layoutmgr/FootnoteBodyLayoutManager.java (revision 651860) >+++ src/java/org/apache/fop/layoutmgr/FootnoteBodyLayoutManager.java (working copy) >@@ -23,12 +23,15 @@ > > import org.apache.fop.area.Area; > import org.apache.fop.fo.flow.FootnoteBody; >+import org.apache.fop.layoutmgr.inline.FootnoteLayoutManager; > > /** > * Layout manager for footnote bodies. > */ > public class FootnoteBodyLayoutManager extends BlockStackingLayoutManager { > >+ private FootnoteLayoutManager footnoteLM; >+ > /** > * Creates a new FootnoteBodyLayoutManager. > * @param body the footnote-body element >@@ -37,6 +40,14 @@ > super(body); > } > >+ public void setParent(LayoutManager lm) { >+ super.setParent(lm); >+ if (footnoteLM == null) { >+ assert (lm instanceof FootnoteLayoutManager); >+ footnoteLM = (FootnoteLayoutManager) lm; >+ } >+ } >+ > /** {@inheritDoc} */ > public void addAreas(PositionIterator parentIter, LayoutContext layoutContext) { > LayoutManager childLM = null; >@@ -105,5 +116,12 @@ > public int getKeepWithPreviousStrength() { > return KEEP_AUTO; > } >- >+ >+ /** >+ * {@inheritDoc} >+ * <i>Note: overridden to always return the associated FootnoteLM</i> >+ */ >+ public LayoutManager getParent() { >+ return footnoteLM; >+ } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 37579
:
17010
|
17432
|
17433
|
17434
|
21907
|
21908
|
21922
|
21976
|
21977
|
21979
|
23492
|
23561