[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
This commit is contained in:
PJ Fanning 2024-03-04 14:01:46 +00:00
parent 1c156c4005
commit db63599833
2 changed files with 3 additions and 1 deletions

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());
}

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")) {