aboutsummaryrefslogtreecommitdiffstats
path: root/src/contrib
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/contrib
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/contrib')
-rw-r--r--src/contrib/src/org/apache/poi/ss/usermodel/contrib/CellUtil.java2
1 files changed, 1 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());
}
/**