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 f9003912c0
commit ea48f23d55
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);
}