From 4476c5bed846a37d7ffcc77349eb7256a420f7c5 Mon Sep 17 00:00:00 2001 From: Vincent Hennebert Date: Sun, 27 Jan 2008 14:09:12 +0000 Subject: [PATCH] Of course startIndex == endIndex means there is one element whose length must be computed... Changed >= into > git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@615604 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/layoutmgr/table/RowPainter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/org/apache/fop/layoutmgr/table/RowPainter.java b/src/java/org/apache/fop/layoutmgr/table/RowPainter.java index 9004e9c17..54ac4867a 100644 --- a/src/java/org/apache/fop/layoutmgr/table/RowPainter.java +++ b/src/java/org/apache/fop/layoutmgr/table/RowPainter.java @@ -234,7 +234,7 @@ class RowPainter { // be used as padding. // This should be handled automatically by a proper use of Knuth elements private int computeContentLength(PrimaryGridUnit pgu, int startIndex, int endIndex) { - if (startIndex >= endIndex) { + if (startIndex > endIndex) { // May happen if the cell contributes no content on the current page (empty // cell, in most cases) return 0; -- 2.39.5