diff options
author | PJ Fanning <fanningpj@apache.org> | 2024-03-04 14:01:46 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2024-03-04 14:01:46 +0000 |
commit | db635998335852c0824623e3e2d55be23f546f7f (patch) | |
tree | 8add88bf34dccb2318fa32a877890c588c559a7f | |
parent | 1c156c4005173605dd520f31edc514546e447fe9 (diff) | |
download | poi-db635998335852c0824623e3e2d55be23f546f7f.tar.gz poi-db635998335852c0824623e3e2d55be23f546f7f.zip |
[bug-68703] revert fix issue with XSLFTextRuns in XSLFTableCells
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916106 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFTextParagraph.java | 2 | ||||
-rw-r--r-- | poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFTableCell.java | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFTextParagraph.java b/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFTextParagraph.java index d8bcd25f1d..635200e12e 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFTextParagraph.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFTextParagraph.java @@ -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()); } diff --git a/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFTableCell.java b/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFTableCell.java index 87bb0ce6a2..86db08d097 100644 --- a/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFTableCell.java +++ b/poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFTableCell.java @@ -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")) { |