]> source.dussan.org Git - poi.git/commitdiff
Bugzilla 52219: fixed XSSFSimpleShape to set rich text attributes from XSSFRichTextString
authorYegor Kozlov <yegor@apache.org>
Mon, 19 Dec 2011 08:25:46 +0000 (08:25 +0000)
committerYegor Kozlov <yegor@apache.org>
Mon, 19 Dec 2011 08:25:46 +0000 (08:25 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1220645 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSimpleShape.java

index 0de7b9c064da551d6b1c7f7681d0375ab9fc8374..f208177d9e4bcb186929d19dea6214c235d478e6 100644 (file)
@@ -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();