poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r1098927 - in /poi/trunk/src: documentation/content/xdocs/status.xml ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTable.java ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFTable.java
Date Tue, 03 May 2011 05:56:23 GMT
Author: nick
Date: Tue May  3 05:56:22 2011
New Revision: 1098927

URL: http://svn.apache.org/viewvc?rev=1098927&view=rev
Log:
Fix bug #51112 - Correct XWPFTable tracking of new rows

Modified:
    poi/trunk/src/documentation/content/xdocs/status.xml
    poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTable.java
    poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFTable.java

Modified: poi/trunk/src/documentation/content/xdocs/status.xml
URL: http://svn.apache.org/viewvc/poi/trunk/src/documentation/content/xdocs/status.xml?rev=1098927&r1=1098926&r2=1098927&view=diff
==============================================================================
--- poi/trunk/src/documentation/content/xdocs/status.xml (original)
+++ poi/trunk/src/documentation/content/xdocs/status.xml Tue May  3 05:56:22 2011
@@ -34,6 +34,7 @@
 
     <changes>
         <release version="3.8-beta3" date="2011-??-??">
+           <action dev="poi-developers" type="fix">51112 - Correct XWPFTable tracking
of new rows</action>
            <action dev="poi-developers" type="fix">51113 - Correct XWPFParagraph tracking
of inserted runs</action>
            <action dev="poi-developers" type="fix">51111 - Correct XWPFParagraph tracking
of new runs</action>
            <action dev="poi-developers" type="fix">51115 - Handle DataFormatter escaping
of "." in the same way as "-" and "/"</action>

Modified: poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTable.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTable.java?rev=1098927&r1=1098926&r2=1098927&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTable.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTable.java Tue May  3 05:56:22
2011
@@ -159,6 +159,7 @@ public class XWPFTable implements IBodyE
                 .sizeOfTcArray() : 0;
         XWPFTableRow tabRow = new XWPFTableRow(ctTbl.addNewTr(), this);
         addColumn(tabRow, sizeCol);
+        tableRows.add(tabRow);
         return tabRow;
     }
 

Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFTable.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFTable.java?rev=1098927&r1=1098926&r2=1098927&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFTable.java (original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xwpf/usermodel/TestXWPFTable.java Tue May
 3 05:56:22 2011
@@ -94,6 +94,7 @@ public class TestXWPFTable extends TestC
 
         //add a new row
         xtab.createRow();
+        assertEquals(4, xtab.getNumberOfRows());
 
         //check number of cols
         assertEquals(2, table.getTrArray(0).sizeOfTcArray());



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message