]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Fixed a bug for labels, giving the wrong reference IPD.
authorJeremias Maerki <jeremias@apache.org>
Fri, 28 Jan 2005 11:05:35 +0000 (11:05 +0000)
committerJeremias Maerki <jeremias@apache.org>
Fri, 28 Jan 2005 11:05:35 +0000 (11:05 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198333 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/layoutmgr/list/ListItemLayoutManager.java

index d2be85e415d8a3857efb37636e7817985a59f55f..ccd2ab21e379fff8ef5aa684b8d4f870c0fa6fac 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 1999-2004 The Apache Software Foundation.
+ * Copyright 1999-2005 The Apache Software Foundation.
  * 
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -128,11 +128,8 @@ public class ListItemLayoutManager extends BlockStackingLayoutManager {
             childLC.setStackLimit(
                   MinOptMax.subtract(context.getStackLimit(),
                                      stackSize));
-            if (stage == 0) {
-                childLC.setRefIPD(24000);
-            } else if (stage == 1) {
-                childLC.setRefIPD(context.getRefIPD());
-            }
+            childLC.setRefIPD(context.getRefIPD());
+            
             stage++;
             while (!curLM.isFinished()) {
                 if ((bp = curLM.getNextBreakPoss(childLC)) != null) {