mirror of https://github.com/apache/poi.git
[bug-68703] fix issue with XSLFTextRuns in XSLFTableCells
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1916108 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
db63599833
commit
a3488f6c39
|
@ -752,8 +752,12 @@ public class XSLFTableCell extends XSLFTextShape implements TableCell<XSLFShape,
|
|||
}
|
||||
|
||||
XSLFTheme theme = getSheet().getTheme();
|
||||
final XSLFColor c = new XSLFColor(txStyle, theme, phClr, getSheet());
|
||||
return DrawPaint.createSolidPaint(c.getColorStyle());
|
||||
try {
|
||||
final XSLFColor c = new XSLFColor(txStyle, theme, phClr, getSheet());
|
||||
return DrawPaint.createSolidPaint(c.getColorStyle());
|
||||
} catch (IllegalArgumentException e) {
|
||||
return super.getFontColor();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,7 +27,6 @@ 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
|
||||
|
@ -229,7 +228,6 @@ class TestXSLFTableCell
|
|||
ppt.close();
|
||||
}
|
||||
|
||||
@Disabled
|
||||
@Test
|
||||
void testBug68703() throws IOException {
|
||||
try(XMLSlideShow pptx = XSLFTestDataSamples.openSampleDocument("bug68703.pptx")) {
|
||||
|
|
Loading…
Reference in New Issue