From: Jeremias Maerki Date: Fri, 28 Jan 2005 11:05:35 +0000 (+0000) Subject: Fixed a bug for labels, giving the wrong reference IPD. X-Git-Tag: Root_Temp_KnuthStylePageBreaking~174 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f79638aa9b0ae91cc7741e5cd92d9d113130e0cd;p=xmlgraphics-fop.git Fixed a bug for labels, giving the wrong reference IPD. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198333 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/layoutmgr/list/ListItemLayoutManager.java b/src/java/org/apache/fop/layoutmgr/list/ListItemLayoutManager.java index d2be85e41..ccd2ab21e 100644 --- a/src/java/org/apache/fop/layoutmgr/list/ListItemLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/list/ListItemLayoutManager.java @@ -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) {