]> source.dussan.org Git - poi.git/commitdiff
Fix bug #49254 - Fix CellUtils.setFont to use the correct type internally
authorNick Burch <nick@apache.org>
Wed, 5 May 2010 15:24:23 +0000 (15:24 +0000)
committerNick Burch <nick@apache.org>
Wed, 5 May 2010 15:24:23 +0000 (15:24 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@941342 13f79535-47bb-0310-9956-ffa450edef68

src/contrib/src/org/apache/poi/ss/usermodel/contrib/CellUtil.java
src/documentation/content/xdocs/status.xml

index d18cd4159b570da318211602bb13ca4ae0f8ddfa..2cb2c08970db2546fa802f0016ced42fe6e1a832 100644 (file)
@@ -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());
        }
 
        /**
index d9eb624850d003f1be48768f5f71bb2a9440a5c5..78bda68a9b30fa970fd4430d42c01890e8f77762 100644 (file)
@@ -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>