From 70d511b80f4099730738077cf15dc39a062df89a Mon Sep 17 00:00:00 2001 From: Vincent Hennebert Date: Fri, 15 Feb 2008 18:33:12 +0000 Subject: [PATCH] rowStarted doesn't need to be set in the signalNewRow method. If it is, it will prevent the startTablePart event from being triggered on RowGroupBuilder, in addChildNode. This will lead to a NPE being thrown in CollapsingBorderResolver because it would be improperly set up. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@628140 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/fo/flow/table/TableBody.java | 1 - .../unittests/table/RowGroupBuilder_no-row_simple.fo | 10 +++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/java/org/apache/fop/fo/flow/table/TableBody.java b/src/java/org/apache/fop/fo/flow/table/TableBody.java index 7df1ed0a7..c3642c260 100644 --- a/src/java/org/apache/fop/fo/flow/table/TableBody.java +++ b/src/java/org/apache/fop/fo/flow/table/TableBody.java @@ -286,7 +286,6 @@ public class TableBody extends TableCellContainer { getTable().getRowGroupBuilder().endRow(this); } } - rowsStarted = true; } } diff --git a/test/fotree/unittests/table/RowGroupBuilder_no-row_simple.fo b/test/fotree/unittests/table/RowGroupBuilder_no-row_simple.fo index d109797a4..3e798ab5f 100644 --- a/test/fotree/unittests/table/RowGroupBuilder_no-row_simple.fo +++ b/test/fotree/unittests/table/RowGroupBuilder_no-row_simple.fo @@ -32,7 +32,7 @@ + border-collapse="collapse" border="1pt solid black"> Cell 1 @@ -54,7 +54,7 @@ + border-collapse="collapse" border="1pt solid black"> Cell 1 @@ -88,7 +88,7 @@ + border-collapse="collapse" border="1pt solid black"> Header 1 @@ -116,7 +116,7 @@ + border-collapse="collapse" border="1pt solid black"> Header 1 @@ -160,7 +160,7 @@ + border-collapse="collapse" border="1pt solid black"> Header 1 -- 2.39.5