Bugzilla 52219: fixed XSSFSimpleShape to set rich text attributes from XSSFRichTextString

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1220645 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yegor Kozlov 2011-12-19 08:25:46 +00:00
parent 8c2f0e5770
commit b2461c5c59

View File

@ -192,6 +192,11 @@ public class XSSFSimpleShape extends XSSFShape { // TODO - instantiable supercla
rFont.setTypeface(pr.getRFontArray(0).getVal());
}
if(pr.sizeOfSzArray() > 0) {
int sz = (int)(pr.getSzArray(0).getVal()*100);
rPr.setSz(sz);
}
if(pr.sizeOfColorArray() > 0) {
CTSolidColorFillProperties fill = rPr.isSetSolidFill() ? rPr.getSolidFill() : rPr.addNewSolidFill();
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTColor xlsColor = pr.getColorArray(0);