aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/fo/flow/InstreamForeignObject.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/apache/fop/fo/flow/InstreamForeignObject.java')
-rw-r--r--src/org/apache/fop/fo/flow/InstreamForeignObject.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/org/apache/fop/fo/flow/InstreamForeignObject.java b/src/org/apache/fop/fo/flow/InstreamForeignObject.java
index 398293f43..47a50453d 100644
--- a/src/org/apache/fop/fo/flow/InstreamForeignObject.java
+++ b/src/org/apache/fop/fo/flow/InstreamForeignObject.java
@@ -57,6 +57,8 @@ public class InstreamForeignObject extends FObj {
public void addLayoutManager(List list) {
LeafNodeLayoutManager lm = new LeafNodeLayoutManager(this);
lm.setCurrentArea(getInlineArea());
+ lm.setAlignment(properties.get("vertical-align").getEnum());
+ lm.setLead(areaCurrent.getHeight());
list.add(lm);
}
@@ -247,9 +249,6 @@ public class InstreamForeignObject extends FObj {
areaCurrent.setContentPosition(placement);
areaCurrent.setClip(clip);
areaCurrent.setOffset(0);
- areaCurrent.info = new LayoutInfo();
- areaCurrent.info.alignment = properties.get("vertical-align").getEnum();
- areaCurrent.info.lead = areaCurrent.getHeight();
return areaCurrent;
}