Add back another hssf overloaded method for binary compatibility

git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@678379 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nick Burch 2008-07-21 09:55:13 +00:00
parent 8eb4ea33e6
commit a6701efc5f
1 changed files with 5 additions and 4 deletions

View File

@ -315,11 +315,12 @@ public class HSSFCellStyle implements CellStyle
* @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);
}