]> source.dussan.org Git - poi.git/commitdiff
[bug-68703] revert fix issue with XSLFTextRuns in XSLFTableCells
authorPJ Fanning <fanningpj@apache.org>
Mon, 4 Mar 2024 14:01:46 +0000 (14:01 +0000)
committerPJ Fanning <fanningpj@apache.org>
Mon, 4 Mar 2024 14:01:46 +0000 (14:01 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916106 13f79535-47bb-0310-9956-ffa450edef68

poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFTextParagraph.java
poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFTableCell.java

index d8bcd25f1de0902b687f28f2b98c8fed1a840849..635200e12ebee00bd4052e17ae26baa4161481e3 100644 (file)
@@ -75,7 +75,7 @@ public class XSLFTextParagraph implements TextParagraph<XSLFShape,XSLFTextParagr
                     if (r instanceof CTTextLineBreak) {
                         _runs.add(new XSLFLineBreak((CTTextLineBreak)r, this));
                     } else if (r instanceof CTRegularTextRun || r instanceof CTTextField) {
-                        _runs.add(new XSLFTextRun(r, this));
+                        _runs.add(newTextRun(r));
                     }
                 } while (c.toNextSibling());
             }
index 87bb0ce6a272c34cd74ac99b1e3a4661f8e833e5..86db08d097ac774a1959c35c1bba28f62527d0a1 100644 (file)
@@ -27,6 +27,7 @@ import java.util.List;
 
 import org.apache.poi.sl.usermodel.PaintStyle;
 import org.apache.poi.xslf.XSLFTestDataSamples;
+import org.junit.jupiter.api.Disabled;
 import org.junit.jupiter.api.Test;
 
 class TestXSLFTableCell
@@ -228,6 +229,7 @@ class TestXSLFTableCell
         ppt.close();
     }
 
+    @Disabled
     @Test
     void testBug68703() throws IOException {
         try(XMLSlideShow pptx = XSLFTestDataSamples.openSampleDocument("bug68703.pptx")) {