]> source.dussan.org Git - poi.git/commitdiff
fixes for article
authorSaid Ryan Ackley <sackley@apache.org>
Sun, 11 Jul 2004 05:54:36 +0000 (05:54 +0000)
committerSaid Ryan Ackley <sackley@apache.org>
Sun, 11 Jul 2004 05:54:36 +0000 (05:54 +0000)
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
src/scratchpad/src/org/apache/poi/hwpf/usermodel/Table.java

index 0f55cbd55790c0074900c23258344129628c60af..165e3d2918bacfc083bded4b546cc1fdc43859b8 100644 (file)
@@ -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);
   }
 
   /**
index 42aa6570b45cc3e3dac43323811182317eaa21c5..535590286b75031404c0cf74016d573cbd3f5fe1 100644 (file)
@@ -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++;