aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYegor Kozlov <yegor@apache.org>2008-11-25 13:10:46 +0000
committerYegor Kozlov <yegor@apache.org>2008-11-25 13:10:46 +0000
commit9de2e589183dcb1d0a6a92d350961358160e5f43 (patch)
tree3c2db5e5b1d4e313fabc2596b0a7ddac9ea11221
parentf3d8a267194ac662e7fadd22bf8d197bf6ae8f0b (diff)
downloadpoi-9de2e589183dcb1d0a6a92d350961358160e5f43.tar.gz
poi-9de2e589183dcb1d0a6a92d350961358160e5f43.zip
properly set font size when applying indexed font
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@720487 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFRichTextString.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFRichTextString.java b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFRichTextString.java
index 54d5938f48..879faeed8a 100644
--- a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFRichTextString.java
+++ b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFRichTextString.java
@@ -261,6 +261,7 @@ public class XSSFRichTextString implements RichTextString {
if(c1.isSetTheme()) c2.setTheme(c1.getTheme());
if(c1.isSetTint()) c2.setTint(c1.getTint());
}
+ if(ctFont.sizeOfSzArray() > 0) pr.addNewSz().setVal(ctFont.getSzArray(0).getVal());
if(ctFont.sizeOfNameArray() > 0) pr.addNewRFont().setVal(ctFont.getNameArray(0).getVal());
if(ctFont.sizeOfFamilyArray() > 0) pr.addNewFamily().setVal(ctFont.getFamilyArray(0).getVal());
if(ctFont.sizeOfSchemeArray() > 0) pr.addNewScheme().setVal(ctFont.getSchemeArray(0).getVal());