aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNick Burch <nick@apache.org>2010-05-05 15:24:23 +0000
committerNick Burch <nick@apache.org>2010-05-05 15:24:23 +0000
commit84b713a477fd95e8a9a4bf50b70449245936a5b5 (patch)
treeefbbe0e0d5ddfa34c77089fa57199f9660e98e15 /src
parent423194bd275ccc1f692ce0093024af03a164c8dc (diff)
downloadpoi-84b713a477fd95e8a9a4bf50b70449245936a5b5.tar.gz
poi-84b713a477fd95e8a9a4bf50b70449245936a5b5.zip
Fix bug #49254 - Fix CellUtils.setFont to use the correct type internally
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@941342 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/contrib/src/org/apache/poi/ss/usermodel/contrib/CellUtil.java2
-rw-r--r--src/documentation/content/xdocs/status.xml1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/contrib/src/org/apache/poi/ss/usermodel/contrib/CellUtil.java b/src/contrib/src/org/apache/poi/ss/usermodel/contrib/CellUtil.java
index d18cd4159b..2cb2c08970 100644
--- a/src/contrib/src/org/apache/poi/ss/usermodel/contrib/CellUtil.java
+++ b/src/contrib/src/org/apache/poi/ss/usermodel/contrib/CellUtil.java
@@ -165,7 +165,7 @@ public final class CellUtil {
*@param font The Font that you want to set...
*/
public static void setFont(Cell cell, Workbook workbook, Font font) {
- setCellStyleProperty(cell, workbook, FONT, font);
+ setCellStyleProperty(cell, workbook, FONT, font.getIndex());
}
/**
diff --git a/src/documentation/content/xdocs/status.xml b/src/documentation/content/xdocs/status.xml
index d9eb624850..78bda68a9b 100644
--- a/src/documentation/content/xdocs/status.xml
+++ b/src/documentation/content/xdocs/status.xml
@@ -34,6 +34,7 @@
<changes>
<release version="3.7-SNAPSHOT" date="2010-??-??">
+ <action dev="POI-DEVELOPERS" type="fix">49254 - Fix CellUtils.setFont to use the correct type internally</action>
<action dev="POI-DEVELOPERS" type="fix">49139 - Properly support 4k big block size in POIFS</action>
<action dev="POI-DEVELOPERS" type="fix">48936 - Avoid writing malformed CDATA blocks in sharedStrings.xml</action>
<action dev="POI-DEVELOPERS" type="add">49026 - Added implementation for TEXT() </action>