aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2005-01-28 11:05:35 +0000
committerJeremias Maerki <jeremias@apache.org>2005-01-28 11:05:35 +0000
commitf79638aa9b0ae91cc7741e5cd92d9d113130e0cd (patch)
treeb729fc2f34368ad9d5df951d57a518c99264d67a /src
parent5041422b2948bdccf9deedba4db61b030289ab2c (diff)
downloadxmlgraphics-fop-f79638aa9b0ae91cc7741e5cd92d9d113130e0cd.tar.gz
xmlgraphics-fop-f79638aa9b0ae91cc7741e5cd92d9d113130e0cd.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/java/org/apache/fop/layoutmgr/list/ListItemLayoutManager.java9
1 files 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) {