poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r678379 - /poi/branches/ooxml/src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java
Date Mon, 21 Jul 2008 09:55:13 GMT
Author: nick
Date: Mon Jul 21 02:55:13 2008
New Revision: 678379

URL: http://svn.apache.org/viewvc?rev=678379&view=rev
Log:
Add back another hssf overloaded method for binary compatibility

Modified:
    poi/branches/ooxml/src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java

Modified: poi/branches/ooxml/src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java
URL: http://svn.apache.org/viewvc/poi/branches/ooxml/src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java?rev=678379&r1=678378&r2=678379&view=diff
==============================================================================
--- poi/branches/ooxml/src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java (original)
+++ poi/branches/ooxml/src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java Mon Jul 21
02:55:13 2008
@@ -315,11 +315,12 @@
      * @see org.apache.poi.hssf.usermodel.HSSFWorkbook#createFont()
      * @see org.apache.poi.hssf.usermodel.HSSFWorkbook#getFontAt(short)
      */
-
-    public void setFont(Font font)
-    {
+    public void setFont(Font font) {
+		setFont((HSSFFont)font);
+	}
+	public void setFont(HSSFFont font) {
         format.setIndentNotParentFont(true);
-        short fontindex = ((HSSFFont) font).getIndex();
+        short fontindex = font.getIndex();
         format.setFontIndex(fontindex);
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message