]> source.dussan.org Git - poi.git/commitdiff
Fix jdk14 compile issue
authorNick Burch <nick@apache.org>
Wed, 17 Sep 2008 22:00:09 +0000 (22:00 +0000)
committerNick Burch <nick@apache.org>
Wed, 17 Sep 2008 22:00:09 +0000 (22:00 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@696482 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/hssf/usermodel/HSSFSheet.java

index eb37a57ce8a0b49901a7e7cfe1fcc31bb68e3ed4..dead7cabfc8107b62b32aef55ddf94e0e52e64f8 100644 (file)
@@ -1651,7 +1651,7 @@ public class HSSFSheet implements org.apache.poi.ss.usermodel.Sheet
      * @param style the style to set
      */
     public void setDefaultColumnStyle(short column, CellStyle style) {
-        sheet.setDefaultColumnStyle(column, style.getIndex());
+        sheet.setDefaultColumnStyle(column, ((HSSFCellStyle)style).getIndex());
     }
 
     /**