You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ab...@apache.org on 2019/12/10 00:10:52 UTC

svn commit: r1871112 - in /poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel: XSLFAutoShape.java XSLFTableCell.java

Author: abearez
Date: Tue Dec 10 00:10:52 2019
New Revision: 1871112

URL: http://svn.apache.org/viewvc?rev=1871112&view=rev
Log:
Correctly initialize text shapes' first paragraph

Modified:
    poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFAutoShape.java
    poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFTableCell.java

Modified: poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFAutoShape.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFAutoShape.java?rev=1871112&r1=1871111&r2=1871112&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFAutoShape.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFAutoShape.java Tue Dec 10 00:10:52 2019
@@ -81,6 +81,7 @@ public class XSLFAutoShape extends XSLFT
             initTextBody(body);
             shape.setTxBody(body.getXmlObject());
             txBody = shape.getTxBody();
+            getTextParagraphs().add(newTextParagraph(txBody.getPArray(0)));
         }
         return txBody;
     }

Modified: poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFTableCell.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFTableCell.java?rev=1871112&r1=1871111&r2=1871112&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFTableCell.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xslf/usermodel/XSLFTableCell.java Tue Dec 10 00:10:52 2019
@@ -92,6 +92,7 @@ public class XSLFTableCell extends XSLFT
             initTextBody(body);
             cell.setTxBody(body.getXmlObject());
             txBody = cell.getTxBody();
+            getTextParagraphs().add(newTextParagraph(txBody.getPArray(0)));
         }
         return txBody;
     }



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