]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Avoid creation of unnecessary dummy areas.
authorAndreas L. Delmelle <adelmelle@apache.org>
Sun, 11 May 2008 21:03:41 +0000 (21:03 +0000)
committerAndreas L. Delmelle <adelmelle@apache.org>
Sun, 11 May 2008 21:03:41 +0000 (21:03 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@655370 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/layoutmgr/inline/WrapperLayoutManager.java

index 8108bbf405bb9676cb968020dd26c5b855e75cfb..a5bbdb33c94cda3d29bd23c1a8a44889f01a9c27 100644 (file)
@@ -74,12 +74,7 @@ public class WrapperLayoutManager extends LeafNodeLayoutManager {
             if (parentLM instanceof BlockStackingLayoutManager
                     && !(parentLM instanceof BlockLayoutManager)) {
                 Block helperBlock = new Block();
-                LineArea helperLine = new LineArea();
-                InlineParent helperInline = new InlineParent();
-                helperInline.addChildArea(area);
-                helperLine.addInlineArea(helperInline);
-                helperLine.updateExtentsFromChildren();
-                helperBlock.addLineArea(helperLine);
+                TraitSetter.setProducerID(helperBlock, fobj.getId());
                 parentLM.addChildArea(helperBlock);
             } else {
                 parentLM.addChildArea(area);