aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSaid Ryan Ackley <sackley@apache.org>2004-07-11 05:54:36 +0000
committerSaid Ryan Ackley <sackley@apache.org>2004-07-11 05:54:36 +0000
commit7abc766ebbdc4a280ba21b1c76869cd0eaab6a79 (patch)
tree4dbebf46954ab9b479191ee2d9de2f59c41ccffe
parentfd4fff1d90c140d1dda8353029ed9a128428921e (diff)
downloadpoi-7abc766ebbdc4a280ba21b1c76869cd0eaab6a79.tar.gz
poi-7abc766ebbdc4a280ba21b1c76869cd0eaab6a79.zip
fixes for article
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353573 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/scratchpad/src/org/apache/poi/hwpf/usermodel/Range.java2
-rw-r--r--src/scratchpad/src/org/apache/poi/hwpf/usermodel/Table.java2
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 0f55cbd557..165e3d2918 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 42aa6570b4..535590286b 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++;