From: Yegor Kozlov Date: Mon, 19 Dec 2011 08:25:46 +0000 (+0000) Subject: Bugzilla 52219: fixed XSSFSimpleShape to set rich text attributes from XSSFRichTextString X-Git-Tag: REL_3_8_FINAL~100 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f5c15966617a98609012a1eac75819bf81575765;p=poi.git 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 --- diff --git a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSimpleShape.java b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSimpleShape.java index 0de7b9c064..f208177d9e 100644 --- a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSimpleShape.java +++ b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSimpleShape.java @@ -191,6 +191,11 @@ public class XSSFSimpleShape extends XSSFShape { // TODO - instantiable supercla CTTextFont rFont = rPr.addNewLatin(); 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();