You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ye...@apache.org on 2011/12/19 09:25:47 UTC
svn commit: r1220645 -
/poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSimpleShape.java
Author: yegor
Date: Mon Dec 19 08:25:46 2011
New Revision: 1220645
URL: http://svn.apache.org/viewvc?rev=1220645&view=rev
Log:
Bugzilla 52219: fixed XSSFSimpleShape to set rich text attributes from XSSFRichTextString
Modified:
poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSimpleShape.java
Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSimpleShape.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSimpleShape.java?rev=1220645&r1=1220644&r2=1220645&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSimpleShape.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFSimpleShape.java Mon Dec 19 08:25:46 2011
@@ -191,6 +191,11 @@ public class XSSFSimpleShape extends XSS
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();
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org