diff options
author | Karen Lease <klease@apache.org> | 2001-11-11 22:14:45 +0000 |
---|---|---|
committer | Karen Lease <klease@apache.org> | 2001-11-11 22:14:45 +0000 |
commit | 796089b1fa8af9af83b2c4a21d2d3030bce210ea (patch) | |
tree | da91de038fc3b825928b45a30aeff6fa41c86531 /src/org/apache/fop/layoutmgr/LineLayoutManager.java | |
parent | 452004701f4ec3dc20ba55bc132f28f3f841e099 (diff) | |
download | xmlgraphics-fop-796089b1fa8af9af83b2c4a21d2d3030bce210ea.tar.gz xmlgraphics-fop-796089b1fa8af9af83b2c4a21d2d3030bce210ea.zip |
Move generatesInlineAreas from LayoutManager to FObj
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194560 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/layoutmgr/LineLayoutManager.java')
-rw-r--r-- | src/org/apache/fop/layoutmgr/LineLayoutManager.java | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/org/apache/fop/layoutmgr/LineLayoutManager.java b/src/org/apache/fop/layoutmgr/LineLayoutManager.java index 38451354b..060575231 100644 --- a/src/org/apache/fop/layoutmgr/LineLayoutManager.java +++ b/src/org/apache/fop/layoutmgr/LineLayoutManager.java @@ -44,16 +44,16 @@ public class LineLayoutManager extends AbstractLayoutManager { public void generateAreas() { this.bFirstLine = true; while (fobjIter.hasNext()) { - FObj fobj = (FObj)fobjIter.next(); - curLM = fobj.getLayoutManager(); - if (curLM != null) { - if (curLM.generatesInlineAreas()==false) { - // It generates blocks, pass back to parent - // Back up one - fobjIter.previous(); - break; - } - else { // generates inline area + FObj childFO = (FObj)fobjIter.next(); + if (childFO.generatesInlineAreas()==false) { + // It generates blocks, pass back to parent + // Back up one + fobjIter.previous(); + break; + } + else { // generates inline area + curLM = childFO.getLayoutManager(); + if (curLM != null) { curLM.setParentLM(this); curLM.generateAreas(); } |