aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/hssf/usermodel/HSSFCell.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache/poi/hssf/usermodel/HSSFCell.java')
-rw-r--r--src/java/org/apache/poi/hssf/usermodel/HSSFCell.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/java/org/apache/poi/hssf/usermodel/HSSFCell.java b/src/java/org/apache/poi/hssf/usermodel/HSSFCell.java
index e076047c5e..f7e90d0ce4 100644
--- a/src/java/org/apache/poi/hssf/usermodel/HSSFCell.java
+++ b/src/java/org/apache/poi/hssf/usermodel/HSSFCell.java
@@ -880,7 +880,7 @@ public class HSSFCell implements Cell
public void setCellStyle(CellStyle style)
{
- record.setXFIndex(style.getIndex());
+ record.setXFIndex(((HSSFCellStyle) style).getIndex());
}
/**
@@ -1006,9 +1006,9 @@ public class HSSFCell implements Cell
* @param comment comment associated with this cell
*/
public void setCellComment(Comment comment){
- comment.setRow((short)record.getRow());
- comment.setColumn(record.getColumn());
this.comment = (HSSFComment) comment;
+ this.comment.setRow((short)record.getRow());
+ this.comment.setColumn(record.getColumn());
}
/**