From f79638aa9b0ae91cc7741e5cd92d9d113130e0cd Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Fri, 28 Jan 2005 11:05:35 +0000 Subject: [PATCH] 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 --- .../apache/fop/layoutmgr/list/ListItemLayoutManager.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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) { -- 2.39.5