Browse Source

[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
pull/604/head
PJ Fanning 2 months ago
parent
commit
db63599833

+ 1
- 1
poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFTextParagraph.java View 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());
}

+ 2
- 0
poi-ooxml/src/test/java/org/apache/poi/xslf/usermodel/TestXSLFTableCell.java View 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")) {

Loading…
Cancel
Save