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:
parent
f9003912c0
commit
ea48f23d55
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user