From 5c4a6f5ce9c8e132c9f6daf0f0f21ef29142b5e1 Mon Sep 17 00:00:00 2001 From: Said Ryan Ackley Date: Sun, 11 Jul 2004 05:54:36 +0000 Subject: [PATCH] fixes for article git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353573 13f79535-47bb-0310-9956-ffa450edef68 --- src/scratchpad/src/org/apache/poi/hwpf/usermodel/Range.java | 2 +- src/scratchpad/src/org/apache/poi/hwpf/usermodel/Table.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Range.java b/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Range.java index 0f55cbd55..165e3d291 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Range.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Range.java @@ -545,7 +545,7 @@ public class Range cell = cell.insertAfter(parProps, StyleSheet.NIL_STYLE, String.valueOf('\u0007')); cell.setTableRowEnd(props); } - return new Table(_start, _start + (rows * (columns + 1)), this, 0); + return new Table(_start, _start + (rows * (columns + 1)), this, 1); } /** diff --git a/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Table.java b/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Table.java index 42aa6570b..535590286 100644 --- a/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Table.java +++ b/src/scratchpad/src/org/apache/poi/hwpf/usermodel/Table.java @@ -38,7 +38,7 @@ public class Table Paragraph p = getParagraph(rowEnd); if (p.isTableRowEnd() && p.getTableLevel() == levelNum) { - _rows.add(new TableRow(rowStart, rowEnd, this, levelNum)); + _rows.add(new TableRow(rowStart, rowEnd + 1, this, levelNum)); rowStart = rowEnd; } rowEnd++;