]> source.dussan.org Git - poi.git/commitdiff
#63017 - Remove rows from a XSLFTable
authorAndreas Beeker <kiwiwings@apache.org>
Tue, 18 Dec 2018 23:13:59 +0000 (23:13 +0000)
committerAndreas Beeker <kiwiwings@apache.org>
Tue, 18 Dec 2018 23:13:59 +0000 (23:13 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1849248 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/testcases/org/apache/poi/xslf/usermodel/TestXSLFTable.java

index 498f302dec80e3d6cfe0343842c2c2d1440e55b6..632027a8a0d552ac6fba263f6339228945740186 100644 (file)
@@ -68,7 +68,7 @@ public class TestXSLFTable {
             tab.setColumnWidth(1, 60);
             tab.setColumnWidth(2, 60);
 
-            int startRow = rowIdx;
+            int startRow = rowIdx-1;
 
             XSLFTableRow row = tab.getRows().get(0);
             for (int colIdx=0; colIdx<data[0].length; colIdx++) {
@@ -97,7 +97,7 @@ public class TestXSLFTable {
             as.setAnchor(tab.getAnchor());
         }
 
-        File fileOut = TempFile.createTempFile("tabtest", "pptx");
+        File fileOut = TempFile.createTempFile("tabtest", ".pptx");
         try (FileOutputStream fos = new FileOutputStream(fileOut)) {
             ppt.write(fos);
         }