#63017 - Remove rows from a XSLFTable

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1849248 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andreas Beeker 2018-12-18 23:13:59 +00:00
parent 9eea29da5b
commit 422d3a75f9
1 changed files with 2 additions and 2 deletions

View 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);
}