Browse Source

Fix incorrect type safety

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1069941 13f79535-47bb-0310-9956-ffa450edef68
tags/fop-1_1rc1old
Andreas L. Delmelle 13 years ago
parent
commit
e04d597c42
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      src/java/org/apache/fop/layoutmgr/list/ListItemLayoutManager.java

+ 3
- 2
src/java/org/apache/fop/layoutmgr/list/ListItemLayoutManager.java View File

@@ -38,6 +38,7 @@ import org.apache.fop.layoutmgr.BreakElement;
import org.apache.fop.layoutmgr.ConditionalElementListener;
import org.apache.fop.layoutmgr.ElementListObserver;
import org.apache.fop.layoutmgr.ElementListUtils;
import org.apache.fop.layoutmgr.FootnoteBodyLayoutManager;
import org.apache.fop.layoutmgr.Keep;
import org.apache.fop.layoutmgr.KnuthBlockBox;
import org.apache.fop.layoutmgr.KnuthBox;
@@ -313,14 +314,14 @@ public class ListItemLayoutManager extends BlockStackingLayoutManager
// collect footnote information
// TODO this should really not be done like this. ListItemLM should remain as
// footnote-agnostic as possible
LinkedList<ListElement> footnoteList = null;
LinkedList<FootnoteBodyLayoutManager> footnoteList = null;
ListElement el;
for (int i = 0; i < elementLists.length; i++) {
for (int j = start[i]; j <= end[i]; j++) {
el = (ListElement) elementLists[i].get(j);
if (el instanceof KnuthBlockBox && ((KnuthBlockBox) el).hasAnchors()) {
if (footnoteList == null) {
footnoteList = new LinkedList<ListElement>();
footnoteList = new LinkedList<FootnoteBodyLayoutManager>();
}
footnoteList.addAll(((KnuthBlockBox) el).getFootnoteBodyLMs());
}

Loading…
Cancel
Save