diff options
author | Yegor Kozlov <yegor@apache.org> | 2008-11-25 13:10:46 +0000 |
---|---|---|
committer | Yegor Kozlov <yegor@apache.org> | 2008-11-25 13:10:46 +0000 |
commit | 9de2e589183dcb1d0a6a92d350961358160e5f43 (patch) | |
tree | 3c2db5e5b1d4e313fabc2596b0a7ddac9ea11221 | |
parent | f3d8a267194ac662e7fadd22bf8d197bf6ae8f0b (diff) | |
download | poi-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.java | 1 |
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()); |